Latest web development tutorials

JavaScript getUTCMilliseconds () method

Date Object Reference JavaScript Date Object

Examples

According to Universal Time (UTC) Returns the milliseconds (0 to 999):

var d = new Date();
var n = d.getUTCMilliseconds();

n output:


try it"


Definition and Usage

getUTCMilliseconds () method according to Universal Time (UTC) Returns the milliseconds (0 to 999).

Coordinated Universal Time (UTC) in seconds when the atomic length based on the time metering system as close as possible in a time when the world.

Tip: Coordinated Universal Time, also known as the unified world time, Universal Time, Coordinated Universal Time, abbreviated UTC (Universal Coordinated Time).

Note UTC time is the GMT (Greenwich Mean) time.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support getUTCMilliseconds () method


grammar

Date.getUTCMilliseconds()

return value

Types of description
Number The value is an integer from 0 to 999.

technical details

JavaScript version: 1.3


More examples

Examples

Here we will be a specific date and time in UTC milliseconds extract:

var d = new Date("July 21, 1983 01:15:00:195");
var n = d.getUTCMilliseconds();

n output:


try it"
Examples s

Displays the current UTC time
How getUTCHours (), getUTCMinutes () and getUTCSeconds () to display the current UTC time.


Date Object Reference JavaScript Date Object