add duration
adds a time duration to a datetime value
(datetime subject, long seconds, long nanoSeconds) -> datetime
Adds a time duration to given subject
datetime and returns the result.
Supply negative numbers to effectively subtract a duration.
Returns nil
if any argument is nil
.
Parameters
Name | Type | Description |
---|---|---|
subject |
datetime | The datetime to add a duration to |
seconds |
long | The seconds to add |
nanoSeconds |
long | The nano seconds to add |