Package: mixtime 0.1.0

Mitchell OHara-Wild

mixtime: Mixed Temporal Vectors and Operations

Flexible time classes for time series analysis and forecasting with mixed temporal granularities. Supports linear and cyclical time representations in discrete and continuous forms, with timezone support, across multiple calendar systems including Gregorian and ISO week date calendars. Time points are stored numerically relative to a chronon; an atomic time granule defined by time units of a calendar. Calendrical arithmetic enables conversion between time granules (e.g. days to months) and calendar systems. Multi-unit arithmetic allows for temporal analysis with other granules of common calendars (e.g. fortnights are 2-week units). Time vectors of different granularities (e.g. monthly and quarterly) can be combined in a single vector, making 'mixtime' ideal for data that changes observation frequency over time or requires temporal reconciliation across scales. The package is extensible, allowing users to define custom calendars that build upon civil and astronomical time systems.

Authors:Mitchell O'Hara-Wild [aut, cre]

mixtime_0.1.0.tar.gz
mixtime_0.1.0.tar.gz(r-4.7-arm64)mixtime_0.1.0.tar.gz(r-4.7-x86_64)mixtime_0.1.0.tar.gz(r-4.6-arm64)mixtime_0.1.0.tar.gz(r-4.6-x86_64)
manual.pdf |manual.html
card.svg |card.png
mixtime/json (API)
NEWS

# Install 'mixtime' in R:
install.packages('mixtime', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/mitchelloharawild/mixtime/issues

Pkgdown/docs site:https://pkg.mitchelloharawild.com

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

cpp

3.48 score 1 packages 5 scripts 72 exports 9 dependencies

Last updated from:633100ae1b. Checks:5 OK, 1 FAIL. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK178
linux-devel-x86_64OK176
source / vignettesOK224
linux-release-arm64OK224
linux-release-x86_64OK162
wasm-releaseFAIL131

Exports:as_mixtimecal_gregoriancal_isoweekcal_sym454cal_time_civilcal_time_lunarcal_time_solarchronon_cardinalitychronon_commonchronon_divmodchronon_epochchronon_format_attrchronon_format_cyclicalchronon_format_linearcircsumclass_mixtimecyclical_labelscyclical_timedatedatetimeday_of_monthday_of_weekday_of_yeardaysdurationhoursis_mixtimeis_time_cyclicalis_time_durationis_time_linearlinear_labelslinear_timeloc_altitudeloc_latitudeloc_longitudemillisecondsminutesmixtimemonth_of_yearmonthsmt_loc_unitmt_tz_unitmt_unitnew_calendarnew_cyclical_time_fnnew_duration_fnnew_linear_time_fnnew_mixtimenew_timenew_time_unitquarterssecondstime_calendartime_ceilingtime_chronontime_cycletime_floortime_of_daytime_roundtime_unit_abbrtime_unit_fulltz_abbreviationtz_nametz_offsettz_transitionsweek_of_yearweeksyearyearmonthyearquarteryearsyearweek

Dependencies:clicpp11gluelifecyclerlangS7tzdbvctrsvecvec

Extending mixtime

Rendered fromextending-mixtime.Rmdusingknitr::rmarkdownon May 19 2026.

Last update: 2026-05-19
Started: 2026-05-19

Time format strings

Rendered fromtime-format-strings.Rmdusingknitr::rmarkdownon May 19 2026.

Last update: 2026-05-19
Started: 2026-05-19

Readme and manuals

Help Manual

Help pageTopics
Convert a time class into a mixtimeas_mixtime
Gregorian time unit classescalendar_gregorian cal_gregorian
ISO 8601 time unit classescalendar_isoweek cal_isoweek
Symmetry454 time unit classescalendar_sym454 cal_sym454
Civil time unit classescalendar_time_civil cal_time_civil
Lunar time unit classescalendar_time_lunar cal_time_lunar
Solar time unit classescalendar_time_solar cal_time_solar
Cardinality between time granuleschronon_cardinality
Find the common chronon of a time objectchronon_common chronon_common.mixtime
Convert between chronons of different time granuleschronon_divmod
Epoch offset for chrononschronon_epoch
Default formatting strings for chronon attributeschronon_format_attr
Default formatting strings for chrononschronon_format_cyclical chronon_format_linear
Compute circular rolling sumscircsum
Base S7 class for mixtime vector objectsclass_mixtime
Friendly labels for cyclical relationshipscyclical_labels
Cyclical time pointscyclical_time
Cyclical time helperscyclical_time_helpers day_of_month day_of_week day_of_year month_of_year time_of_day week_of_year
Duration vectorsduration
Duration helper functionsdays duration_helpers hours milliseconds minutes months quarters seconds weeks years
Check if an object is a mixtimeis_mixtime
Check the time type of valuesis_time is_time_cyclical is_time_duration is_time_linear
Friendly labels for linear relationshipslinear_labels
Linear time pointslinear_time
Linear time helper functionsdate datetime linear_time_helpers year yearmonth yearquarter yearweek
Create a mixtime vectormixtime
Extract locations from an objectloc_altitude loc_latitude loc_longitude mixtime_location
Base S7 class for creating new time unitsmt_loc_unit mt_tz_unit mt_unit
Create a new calendarnew_calendar
Cyclical time function factorynew_cyclical_time_fn
Duration function factorynew_duration_fn
Linear time function factorynew_linear_time_fn
Constructor for mixtime vectorsnew_mixtime
Constructor for mixtime time vectorsnew_time
Create a new time unit classnew_time_unit
Generate sequences of mixtime valuesseq.mixtime::mixtime seq.mt_time
Obtain the calendar of a time objecttime_calendar
Obtain the chronon of a time objecttime_chronon
Obtain the cycle of a time objecttime_cycle
Round, floor and ceiling transformations for time objectstime_ceiling time_floor time_round trunc_time
Time units as a stringtime_unit_abbr time_unit_full
Get timezone abbreviationtz_abbreviation
Extract timezone from an objecttz_name
Get timezone offsettz_offset
Get timezone transitionstz_transitions