Gets the milliseconds of a Date object using Universal Coordinated Time (UTC).
SyntaxdateObj.getUTCMilliseconds()
Return Value
Returns a millisecond value that can range from 0-999.
ExamplesThe following example illustrates the use of the getUTCMilliseconds method.
var date = new Date("1/1/2001");
document.write(date.getUTCMilliseconds());
document.write("<br/>");
date.setMilliseconds(34);
document.writedate.getUTCMilliseconds());
Remarks
The required dateObj reference is a Date object. To get the number of milliseconds in local time, use the getMilliseconds method.
See also Other articles AttributionsMicrosoft Developer Network: Article
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4