fastymd: Fast Utilities for Year Month Day Objects

2025-04-25

Title Fast Utilities for Year Month Day Objects
Version 0.1.2
Description A collection of utility functions for working with Year Month Day objects. Includes functions for fast parsing of numeric and character input based on algorithms described in Hinnant, H. (2021) https://howardhinnant.github.io/date_algorithms.html as well as a branchless calculation of leap years by Jerichaux (2025) https://stackoverflow.com/a/79564914.
Depends R (>= 4.2.0)
Suggests fasttime, lubridate, microbenchmark, tinytest, ymd, litedown
License GPL-3
URL https://timtaylor.codeberg.page/fastymd/
BugReports https://codeberg.org/TimTaylor/fastymd/issues
VignetteBuilder litedown
Author Tim Taylor ORCID iD [aut, cre], Howard Hinnant [aut], jerichaux [aut]

fastymd is a package for working with Year-Month-Day (YMD) style date objects. It provides extremely fast passing of character strings and numeric values to \R date objects as well as fast decomposition of these in to their year month and day components. The underlying algorithms follow the approach of Howard Hinnant for calculating days from the UNIX Epoch of Gregorian Calendar dates and vice versa.

Vignettes

A brief overview of fastymd is provided in the vignette distributed with the package: