Gets the milliseconds of a Date, using local time.
SyntaxdateObj.getMilliseconds()
Return Value
Returns the milliseconds of a date. The value can range from 0-999. If a date has been constructed without specifying the milliseconds, the value returned is 0.
ExamplesThe following example shows how to use the getMilliseconds method.
var date = new Date("1/1/2001");
document.write(date.getMilliseconds());
document.write("<br/>");
date.setMilliseconds(5);
document.write(date.getMilliseconds());
Remarks
The required dateObj reference is a Date object. To get the number of milliseconds in Universal Coordinated Time (UTC), use the getUTCMilliseconds 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