Easy Tutorial
❮ Prop Script Text Dom Obj Fileupload ❯

JavaScript getUTCMilliseconds() Method

JavaScript Date Object

Example

Returns the milliseconds (0~999) of a date according to universal time (UTC):

n Output result:


Definition and Usage

The getUTCMilliseconds() method returns the milliseconds (0~999) of a date according to universal time (UTC).

Coordinated Universal Time (UTC) is a time standard based on atomic time, closely approximating mean solar time.

Note: Coordinated Universal Time, also known as Universal Coordinated Time, World Standard Time, and International Coordinated Time, is abbreviated as UTC.

Caution: UTC time is the same as GMT (Greenwich Mean Time).


Browser Support

All major browsers support the getUTCMilliseconds() method.


Syntax

Return Value

Type Description
Number The value is an integer between 0 and 999.

Technical Details

| JavaScript Version: | 1.3 | | --- | --- |


More Examples

Example

Here, we extract the UTC milliseconds from a specific date and time:

n Output result:

Display the current UTC time


JavaScript Date Object

❮ Prop Script Text Dom Obj Fileupload ❯