The datey package provides three types for date and duration arithmetic on an annual grid:
datey — a point in time, expressed as a calendar date with an optional day fraction.
durationy — a duration in years.
datey_interval — a left-open, right-closed interval (start, end] of time.
Arithmetic, comparison and summary operations are defined in ops, mean.datey and max_min.
See also
datey, durationy, datey_interval for the core types.
ops for arithmetic and comparison operators.
vignette("datey")for a worked introduction.vignette("why-datey")for the motivation and design of the annual grid.