Date.setSeconds
setSeconds – Set the seconds, according to local time (0–59).
Description
Date.setSeconds(integer seconds)
Parameters
Name | Description | Type | Default | Optional |
---|---|---|---|---|
seconds | integer | No |
Return values
Integer. The new timestamp.
Examples
Example #1 – setSeconds example