datey-package: Exact date and duration arithmetic on an annual grid

datey-packageR Documentation

Exact date and duration arithmetic on an annual grid

Description

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 closed-open interval [start, end) of time.

Arithmetic, comparison and summary operations are defined in ops, mean.datey and max_min.

Author(s)

Maintainer: Tim Gordon tim.gordon@btinternet.com (ORCID)

Authors:

See Also

  • datey, durationy, datey_interval for the core types.

  • ops for arithmetic and comparison operators.

  • is_NA and NAs for handling missing values.

  • vignette("datey") for a worked introduction.

  • vignette("why-datey") for the motivation and design of the annual grid.


datey documentation built on July 14, 2026, 5:06 p.m.