Date.setUTCSeconds()
Set the seconds of a date object, according to universal time
The setUTCSeconds() method sets the seconds for a specified date according to universal time.
Syntax
Parameters
secondsValue
An integer between 0 and 59, representing the seconds.
msValue
Optional. A number between 0 and 999, representing the milliseconds.
Return value
The number of milliseconds between 1 January 1970 00:00:00 UTC and the updated date.
Description
Examples
Using setUTCSeconds()
setUTCSeconds()
References
Contributors to this page
Uros Durdevic
Last updated