The getUTCMinutes method returns, according to universal time, the minutes value of the point in time stored in a Date object. The value returned by this method is an integer number from 0 to 59.
Syntax
myDate.getUTCMinutes()
With myDate being an object based on the Date object.
Instead of being instantiated from a class, in JavaScript objects are created by replicating other objects. This paradigm is called Prototype-based programming.
Example
The following code uses the getUTCMinutes method to return the minutes of the current point in time according to universal time:
<script type="text/javascript">
var currentTime = new Date();
var universalCurrentMinutes = currentTime.getUTCMinutes();
document.write("According to universal time, the minutes passed since the last hour are " + universalCurrentMinutes + ".");
</script>
var currentTime = new Date();
var universalCurrentMinutes = currentTime.getUTCMinutes();
document.write("According to universal time, the minutes passed since the last hour are " + universalCurrentMinutes + ".");
</script>
Technical Details
The getUTCMinutes method belongs to the Date object, it is available since the version 1.3 of JavaScript, and it is supported in all major browsers.
JavaScript Manual >> Date Object >> getUTCMinutes Method