period between
the calendar period between two datetimes
(datetime start, datetime end) -> dict
Returns a dict with long values on keys :years
, :months
, and :days
, representing a calendar period between the given datetimes.
All values are negative if start
is after end
.
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 |