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>
This will produce the following results for India time zone:
getUTCMinutes() : 32
More related tutorials please Visit JavaScript Tutorial