set nanoseconds
Sets the nanosecond component of a datetime
(datetime subject, long nanoseconds) -> datetime
Returns datetime subject with the nanoseconds component set to nanoseconds.
If the resulting datetime is in a DST gap, it 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 set nanoseconds on |
nanoseconds |
long | the nanoseconds to set - in range: 0-999999999 |