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.