The getUTCMinutes()
method returns the minutes in the specified date according to universal time.
dateObj.getUTCMinutes()
None.
The value returned by getUTCMinutes()
is an integer between 0 and 59.
getUTCMinutes()
The following example assigns the minutes portion of the current time to the variable minutes
.
var today = new Date(); var minutes = today.getUTCMinutes();
Created by Mozilla Contributors, license: CC-BY-SA 2.5