It's about time
summary
clock provides date-time types and operations that prioritize safety: adding one month to 2022-01-30 triggers errors on invalid month arithmetic instead of silently producing NAs, and accepts invalid = previous/next/NA to return Feb 28, Mar 1, or NA. It implements many calendar types (e.g. year-month, year-quarter, ISO year-week) with variable precision from month to nanoseconds, and interoperates with POSIXct plus packages like slider and ivs for rolling windows and date ranges.
AI-written summary · about








