datey 0.1.0
Initial CRAN release.
-
dateyanddurationyrepresent dates and durations on a fixed-precision annual grid, with exact, associative arithmetic (+,-, comparisons,mean(),range(), etc.). -
start_day(),mid_day(),end_day()andfrom_ymdf()map calendar year/month/day (and day-fraction) to adatey;to_ymdf()and theas_*_day()/is_*_day()helpers provide the reverse mapping and checks. - Conversion to and from
Date,POSIXct,POSIXlt, and to/from years viaas.double()/as.integer(). -
NA_datey_,NA_durationy_andNA_datey_interval_provide type-correctNAs, with fullis.na()/anyNA()support. - Text parsing and formatting for
datey,durationyanddatey_interval. -
pillar_shaft()methods for readable printing ofdatey/durationy/datey_intervalcolumns in tibbles. -
is_leap_year()for integer years anddateys. -
datey_interval(constructed withdatey_interval()or%to%) represents a half-open[start, end)date interval, with%includes%,is_collapsed(),is_proper(), intersection via&, and the constantsall_of_timeandNA_datey_interval_.
