Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the milliseconds value in the Date object using Coordinated Universal Time (UTC).
function setUTCMilliseconds(numMilli : Number)
Arguments
- numMilli
Required. A numeric value equal to the millisecond value.
Remarks
To set the milliseconds using local time, use the setMilliseconds method.
If the value of numMilli is greater than 999, or is a negative number, the stored number of seconds (and minutes, hours, and so forth, if necessary) is incremented an appropriate amount.
Example
The following example illustrates the use of the setUTCMilliseconds method.
function SetUTCMSecDemo(nmsec){
var d = new Date();
d.setUTCMilliseconds(nmsec);
var s = d.toUTCString();
s += " and " + d.getUTCMilliseconds();
s += " milliseconds"
return(s);
}