Date.setSeconds()
Sets the seconds of a date object
The setSeconds() method sets the seconds for a specified date according to local time.
Syntax
Versions prior to JavaScript 1.3
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 setSeconds()
setSeconds()
References
Contributors to this page
Uros Durdevic
Last updated