Date.setUTCMinutes() (Method)

Sets the UTC minutes of the time object.


ECMAScript edition - 2
JavaScript - 1.2
JScript - 3.0
Internet Explorer - 4.0
Netscape - 4.0
Property/method value type:Time value
JavaScript syntax:-myDate.setUTCMinutes(aMinutesValue)
-myDate.setUTCMinutes(aMinutesValue, aSecondsValue)
-myDate.setUTCMinutes(aMinutesValue, aSecondsValue, aMillisecondsValue)
Argument list:aMillisecondsValueAn optional value between 0 and 999 milliseconds
aMinutesValueA value between 0 and 59 minutes
aSecondsValueAn optional value between 0 and 59 seconds

The computation is done according to UTC time coordinates.

ECMA mandates that the seconds and milliseconds should be optional arguments. If the milliseconds value is omitted, the current milliseconds value is used as if the value had been supplied with a getUTCMilliseconds() method. Likewise, the seconds value behaves as if it had been supplied by a getUTCSeconds() method, if it is missing.

The result of this method is the new time value of the containing object having been adjusted by the values passed in as arguments.

Example code:

   myDate = new Date();
   myTime = myDate.getTime();
   document.write("The time rounded down to the nearest hour is "  + myTime + " Milliseconds");

See also:Date.getMinutes(), Date.getUTCMinutes(), Date.prototype, Date.setMinutes()


ECMA 262 edition 2 - section -

ECMA 262 edition 3 - section -