Date.getUTCSeconds

Returns the seconds in the specified date according to universal time.
Method of Date

Syntax

getUTCSeconds()

Parameters

None

Description

The value returned by getUTCSeconds is an integer between 0 and 59.

Examples

The following example assigns the seconds portion of the current time to the variable sec.

See also

Date.getSeconds, Date.setUTCSeconds

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.