set second
sets the second component of a datetime
(datetime subject, long second) -> datetime
Returns datetime subject
with the second component set to second
.
If resulting datetime is in a DST gap, the datetime is adjusted forward by the length of the gap.
Returns nil
if any argument is nil
.
Parameters
Name | Type | Description |
---|---|---|
subject |
datetime | The datetime to work with |
second |
long | The second to set - in range of 0-59 |