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
Example
The following example illustrates the use of the setUTCMilliseconds method.
В | Copy Code |
---|
function SetUTCMSecDemo(nmsec){
var d, s; //Declare variables.
var sep = ":"; //Initialize separator.
d = new Date(); //Create Date object.
d.setUTCMilliseconds(nmsec); //Set UTC milliseconds.
s = "Current setting is ";
s += d.toUTCString() + sep + d.getUTCMilliseconds();
return(s); //Return new setting.
} |
Requirements
See Also