setSeconds function
- Arguments
- 1–2, Optional arguments are indicated by a ? following the argument name.
- Return value (number)
- A number representing the number of milliseconds between the date
object and midnight January 1 1970.
- If
secis -1, returns the last second of the previous minute. - If
secis 60, returns the first second of the next minute. - If
millisec?is -1, returns the last millisecond of the previous second. - If
millisec?is 1000, returns the first millisecond of the next second.
- If
- Syntax
-
dateObj.setSeconds(sec, millisec?) - Examples