Package: cstime 2025.10.13

cstime: Date and Time Functions for Public Health Purposes
Provides easy and consistent time conversion for public health purposes. The time conversion functions provided here are between date, ISO week, ISO yearweek, ISO year, calendar month/year, season, season week.
Authors:
cstime_2025.10.13.tar.gz
cstime_2025.10.13.zip(r-4.7)cstime_2025.10.13.zip(r-4.6)cstime_2025.10.13.zip(r-4.5)
cstime_2025.10.13.tgz(r-4.6-any)cstime_2025.10.13.tgz(r-4.5-any)
cstime_2025.10.13.tar.gz(r-4.7-any)cstime_2025.10.13.tar.gz(r-4.6-any)
cstime_2025.10.13.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
cstime/json (API)
| # Install 'cstime' in R: |
| install.packages('cstime', repos = c('https://niphr.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/niphr/cstime/issues
Pkgdown/docs site:https://niphr.github.io
- dates_by_isoyearweek - Dates of each weekday within ISO yearweeks
- nor_workdays_by_date - Norwegian workdays and holidays by date
- nor_workdays_by_isoyearweek - Norwegian workdays and holidays by ISO yearweek
Last updated from:a85394db70. Checks:9 OK. Indexed: no.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 131 | ||
| source / vignettes | OK | 190 | ||
| linux-release-x86_64 | OK | 135 | ||
| macos-release-arm64 | OK | 95 | ||
| macos-oldrel-arm64 | OK | 116 | ||
| windows-devel | OK | 96 | ||
| windows-release | OK | 88 | ||
| windows-oldrel | OK | 88 | ||
| wasm-release | OK | 120 |
Exports:date_to_calmonth_cdate_to_calmonth_ndate_to_calyear_cdate_to_calyear_ndate_to_calyearmonth_cdate_to_isoquarter_cdate_to_isoquarter_ndate_to_isoweek_cdate_to_isoweek_ndate_to_isoyear_cdate_to_isoyear_ndate_to_isoyearquarter_cdate_to_isoyearweek_cdate_to_season_cdate_to_seasonweek_nisoweek_to_seasonweek_nisoyear_to_last_dateisoyear_to_last_isoweek_nisoyear_to_last_isoyearweek_cisoyearweek_to_isoquarter_cisoyearweek_to_isoquarter_nisoyearweek_to_isoweek_cisoyearweek_to_isoweek_nisoyearweek_to_isoyear_cisoyearweek_to_isoyear_nisoyearweek_to_isoyearquarter_cisoyearweek_to_last_dateisoyearweek_to_season_cisoyearweek_to_seasonweek_nnow_cseason_to_last_dateseasonweek_to_isoweek_cseasonweek_to_isoweek_n
Dependencies:data.tablemagrittr
Last update: 2026-06-30
Started: 2022-01-31
Last update: 2026-06-30
Started: 2022-11-22
Last update: 2026-06-30
Started: 2022-01-31
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Date to calendar month (character) | date_to_calmonth_c date_to_calmonth_c.character date_to_calmonth_c.Date date_to_calmonth_c.default |
| Date to calendar month (numeric) | date_to_calmonth_n date_to_calmonth_n.character date_to_calmonth_n.Date date_to_calmonth_n.default |
| Date to calendar year (character) | date_to_calyear_c date_to_calyear_c.character date_to_calyear_c.Date date_to_calyear_c.default |
| Date to calendar year (numeric) | date_to_calyear_n date_to_calyear_n.character date_to_calyear_n.Date date_to_calyear_n.default |
| Date to calendar yearmonth (character) | date_to_calyearmonth_c date_to_calyearmonth_c.character date_to_calyearmonth_c.Date date_to_calyearmonth_c.default |
| Date to ISO quarter (character) | date_to_isoquarter_c date_to_isoquarter_c.character date_to_isoquarter_c.Date date_to_isoquarter_c.default |
| Date to ISO quarter (numeric) | date_to_isoquarter_n date_to_isoquarter_n.character date_to_isoquarter_n.Date date_to_isoquarter_n.default |
| Date to ISO week (character) | date_to_isoweek_c date_to_isoweek_c.character date_to_isoweek_c.Date date_to_isoweek_c.default |
| Date to ISO week (numeric) | date_to_isoweek_n date_to_isoweek_n.character date_to_isoweek_n.Date date_to_isoweek_n.default |
| Date to ISO year (character) | date_to_isoyear_c date_to_isoyear_c.character date_to_isoyear_c.Date date_to_isoyear_c.default |
| Date to ISO year (numeric) | date_to_isoyear_n date_to_isoyear_n.character date_to_isoyear_n.Date date_to_isoyear_n.default |
| Date to ISO yearquarter (character) | date_to_isoyearquarter_c date_to_isoyearquarter_c.character date_to_isoyearquarter_c.Date date_to_isoyearquarter_c.default |
| Date to ISO yearweek (character) | date_to_isoyearweek_c date_to_isoyearweek_c.character date_to_isoyearweek_c.Date date_to_isoyearweek_c.default |
| Date to season (character) | date_to_season_c |
| Date to season week (numeric) | date_to_seasonweek_n |
| Dates of each weekday within ISO yearweeks | dates_by_isoyearweek |
| ISO week to season week (numeric) | isoweek_to_seasonweek_n isoweek_to_seasonweek_n.character isoweek_to_seasonweek_n.default isoweek_to_seasonweek_n.numeric |
| ISO year to last date (Sunday) | isoyear_to_last_date isoyear_to_last_date.character isoyear_to_last_date.default isoyear_to_last_date.numeric |
| ISO year to last ISO week (numeric) | isoyear_to_last_isoweek_n isoyear_to_last_isoweek_n.character isoyear_to_last_isoweek_n.default isoyear_to_last_isoweek_n.numeric |
| ISO year to last ISO yearweek (character) | isoyear_to_last_isoyearweek_c isoyear_to_last_isoyearweek_c.character isoyear_to_last_isoyearweek_c.default isoyear_to_last_isoyearweek_c.numeric |
| ISO yearweek to ISO quarter (character) | isoyearweek_to_isoquarter_c isoyearweek_to_isoquarter_c.character isoyearweek_to_isoquarter_c.default |
| ISO yearweek to ISO quarter (numeric) | isoyearweek_to_isoquarter_n isoyearweek_to_isoquarter_n.character isoyearweek_to_isoquarter_n.default |
| ISO yearweek to ISO week (character) | isoyearweek_to_isoweek_c isoyearweek_to_isoweek_c.character isoyearweek_to_isoweek_c.default |
| ISO yearweek to ISO week (numeric) | isoyearweek_to_isoweek_n isoyearweek_to_isoweek_n.character isoyearweek_to_isoweek_n.default |
| ISO yearweek to ISO year (character) | isoyearweek_to_isoyear_c isoyearweek_to_isoyear_c.character isoyearweek_to_isoyear_c.default |
| ISO yearweek to ISO year (numeric) | isoyearweek_to_isoyear_n isoyearweek_to_isoyear_n.character isoyearweek_to_isoyear_n.default |
| ISO yearweek to ISO yearquarter (character) | isoyearweek_to_isoyearquarter_c isoyearweek_to_isoyearquarter_c.character isoyearweek_to_isoyearquarter_c.default |
| ISO yearweek to last date (Sunday) | isoyearweek_to_last_date isoyearweek_to_last_date.character isoyearweek_to_last_date.default |
| ISO yearweek to season (character) | isoyearweek_to_season_c isoyearweek_to_season_c.character isoyearweek_to_season_c.default |
| ISO yearweek to season week (numeric) | isoyearweek_to_seasonweek_n |
| keep_sundays | keep_sundays |
| keep_sundays_and_latest_date | keep_sundays_and_latest_date |
| keep_sundays_and_latest_date_internal | keep_sundays_and_latest_date_internal |
| Norwegian workdays and holidays by date | nor_workdays_by_date |
| Norwegian workdays and holidays by ISO yearweek | nor_workdays_by_isoyearweek |
| Current time as character | now_c |
| Season to last date (Sunday) | season_to_last_date season_to_last_date.character season_to_last_date.default |
| Season week to ISO week (character) | seasonweek_to_isoweek_c seasonweek_to_isoweek_c.default seasonweek_to_isoweek_c.numeric |
| Season week to ISO week (numeric) | seasonweek_to_isoweek_n seasonweek_to_isoweek_n.default seasonweek_to_isoweek_n.numeric |
