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/getUTCMilliseconds below:

getUTCMilliseconds ยท WebPlatform Docs

getUTCMilliseconds Summary

Gets the milliseconds of a Date object using Universal Coordinated Time (UTC).

Syntax
dateObj.getUTCMilliseconds()
Return Value

Returns a millisecond value that can range from 0-999.

Examples

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