Manipulate Date, POSIXct and hms Vectors
Overview
Manipulates date ('Date'), date time ('POSIXct') and time ('hms') vectors. Date/times are considered discrete and are floored whenever encountered. Times are wrapped and time zones are maintained unless explicitly altered by the user.
- Updated how S3 methods are registered so internal methods do not overwrite S3 methods.
From NEWS.md in the release
Install
Health
NOTER code for possible problemsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
Found calls to structure() using deprecated special names: dttr2/tests/testthat/test-season.R (.Label: 2) '.Label' should be changed to 'levels'.
- NOTE8 OK, 5 NOTENow
- NOTE11 OK, 2 NOTE2026-07-16
- OK14 OK2026-03-10
Documentation
- Help pages
- 67 (2 internal)includes a package overview page
- Examples that run
- 93%51 run in a plain check · 4 never run
- Exported functions with examples
- 86%
- Documented parameters
- 99%
- Return-value docs
- 94%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 61%
- Median days to close, 50 most recently updated closed issues
- 27
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
15 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/poissonconsulting/dttr2 on 2026-10-18.
GitHub Pages site last deployed 2026-07-19
pkgdown site last built 2026-07-19
Show all practicesHide 2 practices
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-02-19Pull request it wrote: opened by a project memberCommits: 2 by its own account · at least 11 crediting it in the message
- Claude CodePull requests: 1 from outside contributors, first on 2026-06-08
- Claude Opus 4.85 commits · Jun 2026
- Claude Opus 4.63 commits · Feb 2026
- Claude Fable 52 commits · Jul 2026
Dependencies
Installing dttr2 adds 8 packages (4 with compiled code, 3.3 MB of source tarballs). Heaviest: vctrs 1.0 MB, rlang 766 KB, chk 687 KB.
Code & Tests
People & History
Previously maintained by Joe Thorley (0.0.1 to 0.4.1).
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 0.5.2Latest
- 0.5.12024-09-13 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 0.5.02023-11-14 · diff ↗ ·
added 4 exports
dtt_date_from_ints, dtt_date_time_from_ints, dtt_excel_to_date_time, dtt_time_from_ints - RR 4.3.0 released · 2023-04-21
- 0.4.22022-09-26 · diff ↗
- 0.4.1
- RR 4.2.0 released · 2022-04-22
- 0.4.02021-09-19 · diff ↗ ·
added 10 exports
dtt_day_decimal, dtt_days_in_month, dtt_days_in_year, dtt_decade, dtt_doy_decimal, dtt_hour_decimal, dtt_leap_year, dtt_minute_decimal, dtt_month_decimal, dtt_year_decimal - RR 4.1.0 released · 2021-05-18
- 0.3.02020-07-10 · diff ↗ ·
added 6 exports
dtt_sys_date, dtt_sys_date_time, dtt_sys_time, is_date, is_date_time, is_time - 0.2.02020-05-01 · diff ↗ ·
added 7 exports
dtt_date<-, dtt_time<-, dtt_date_add_time, dtt_diff, dtt_set_date, dtt_set_time, dtt_wday - RR 4.0.0 released · 2020-04-24
- 0.1.0
Package metadata
- First published
- 2019-06-28
- Total releases
- 11 / 7 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.0
- Download size
- 64 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("dttr2")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.