Copyright © tutorialspoint.com
Javascript date getUTCMinutes() method returns the minutes in the specified date according to universal time. The value returned by getUTCMinutes is an integer between 0 and 59.
Date.getUTCMinutes() |
Here is the detail of parameters:
NA
Returns the minutes in the specified date according to universal time.
The following example prints the minutes portion of the current time to the 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 following result for Indian time zone:
getUTCMinutes() : 32 |
To understand it in better way you can Try it yourself.
Copyright © tutorialspoint.com