Easy Tutorial
❮ Prop Select Type Met Select Add ❯

JavaScript getUTCSeconds() Method

JavaScript Date Object

Example

Returns the seconds of the time according to universal time:


Definition and Usage

The getUTCSeconds() method returns the seconds of a time according to universal time (0~59).

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

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

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


Browser Support

All major browsers support the getUTCSeconds() method.


Syntax

Return Value

Type Description
Number Returns the seconds field of the time, which is an integer between 0 and 59.

Technical Details

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


More Examples

Display the current UTC time


JavaScript Date Object

❮ Prop Select Type Met Select Add ❯