Date-Time Types and Tools
Overview
Provides a comprehensive library for date-time manipulations using a new family of orthogonal date-time classes (durations, time points, zoned-times, and calendars) that partition responsibilities so that the complexities of time zones are only considered when they are really needed. Capabilities include: date-time parsing, formatting, arithmetic, extraction and updating of components, and rounding.
- Avoid non-API
SET_ATTRIB().
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-05-02
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
The repository also keeps web-only articles.
- Help pages
- 177 (3 internal)includes a package overview page
- Examples that run
- 100%174 run in a plain check
- Exported functions with examples
- 98%
- Documented parameters
- 98%
- Return-value docs
- 98%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 97%
- Median days to close, 50 most recently updated closed issues
- 14
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
14 development-tooling and community-health practices detected across 7 families in the upstream repository
Checks run against github.com/r-lib/clock on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-01-13 · The repository has a site deploy workflow
pkgdown site last built 2026-01-13
Show all practicesHide 3 practices
Dependencies
Installing clock adds 7 packages (5 with compiled code, 3.5 MB of source tarballs). Heaviest: vctrs 1.0 MB, rlang 766 KB, cli 629 KB.
Show all 29 packagesHide all 29 packages
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.7.4Latest
- RR 4.5.0 released · 2025-04-11
- 0.7.32025-03-21 · diff ↗
- 0.7.22025-01-22 · diff ↗
- 0.7.12024-07-18 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 0.7.02023-05-15 · diff ↗ ·
added 11 exports
as_year_week_day, calendar_spanning_seq, date_spanning_seq, date_time_info, date_time_set_zone, date_time_zone, duration_spanning_seq, is_year_week_day, time_point_spanning_seq, year_week_day, zoned_time_info - RR 4.3.0 released · 2023-04-21
- 0.6.12022-07-18 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 0.6.02021-12-02 · diff ↗ ·
added 3 exports
calendar_count_between, date_count_between, time_point_count_between - 0.5.0
- 0.4.12021-09-21 · diff ↗
- 0.4.02021-07-22 · diff ↗ ·
added 5 exports
calendar_end, calendar_start, date_end, date_start, invalid_remove - 0.3.12021-06-28 · diff ↗
Show 5 earlier eventsHide 5 earlier events
- RR 4.1.0 released · 2021-05-18
- 0.3.02021-04-22 · diff ↗ ·
removed 2 exports
zone_database_names, zone_database_versionadded 3 exports
date_seq, tzdb_names, tzdb_version - 0.2.0
- 0.1.02021-03-31
- RR 4.0.0 released · 2020-04-24
Package metadata
- First published
- 2021-03-31
- Total releases
- 14 / 5 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.0.0
- Bundled data
- 0.5 KB / 3 files
- Download size
- 547 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("clock")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.