A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/javascript/Date/getMilliseconds below:

getMilliseconds ยท WebPlatform Docs

getMilliseconds Summary

Gets the milliseconds of a Date, using local time.

Syntax
dateObj.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.

Examples

The 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 Attributions

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