set minute
Sets the minute component of a datetime
(datetime subject, long minute) -> datetime
Returns datetime subject
with the minute component set to minute
.
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 |
minute |
long | The minute to set - in range of 0-59 |