Returns the milliseconds value in a Date object using local time.
|
---|
function getMilliseconds() : Number |
Remarks
Example
The following example illustrates the use of the getMilliseconds method.
В | Copy Code |
---|
function TimeDemo(){
var d, s = "The current local time is: ";
var c = ":";
d = new Date();
s += d.getHours() + c;
s += d.getMinutes() + c;
s += d.getSeconds() + c;
s += d.getMilliseconds();
return(s);
} |
Requirements
See Also