years between
the number of years between two datetimes
(datetime start, datetime end) -> long
Returns the number of full years between the given datetimes.
Returns a negative number 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 |