Home > Web Front-end > JS Tutorial > Detailed explanation of the use of getUTCMinutes() method in JavaScript

Detailed explanation of the use of getUTCMinutes() method in JavaScript

PHPz
Release: 2018-10-12 15:43:03
Original
1402 people have browsed it

This article mainly introduces the detailed use of getUTCMinutes() method in JavaScript. It is the basic knowledge for introductory learning of JS. Friends in need can refer to it

javascript Date.getUTCMinutes() method according to the universal time Returns the minutes on the specified date. The value returned by getUTCMinutes is an integer between 0 and 59.

Syntax: Date.getUTCMinutes()

The following are the details of the parameters:

  • NA

Return value:

Returns minutes according to universal time, on the specified date.

Example:

The following example prints the minute part of the current time variable hrs.

<html>
<head>
<title>JavaScript getUTCMinutes Method</title>
</head>
<body>
<script type="text/javascript">
  var dt = new Date();
  document.write("getUTCMinutes() : " + dt.getUTCMinutes() ); 
</script>
</body>
</html>
Copy after login

This will produce the following results for India time zone:

getUTCMinutes() : 32
Copy after login

More related tutorials please Visit JavaScript Tutorial

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template