duration between
duration between two datetimes
(datetime start, datetime end) -> dict
Returns a dict with long values on keys :seconds, and :nano_seconds, representing the duration between two datetimes.
:seconds are negative if start is after end. :nano_seconds is never negative and within the range of 0 - 999,999,999. A duration of -1 nanoseconds is represented as -1 seconds and 999,999,999 nanoseconds.
Returns nil if any argument is nil.
Parameters
| Name | Type | Description |
|---|---|---|
start |
datetime | Start point of time interval |
end |
datetime | End point of time interval |