Time unit constructors for the civil time system where the boundary of each
day is at midnight on the 24 hour clock. This calendar is intended to be
built on by other calendars (e.g. [cal_time_civil_midnight] and [cal_isoweek]) to
add common time components. These units can be
used with linear_time() to create custom time representations.
Details
The following time units are available (cal_time_civil_midnight$).
day(): Day unithour(): Hour unitminute(): Minute unitsecond(): Second unitmillisecond(): Millisecond unit
See also
cal_time_civil_midnight, cal_isoweek
Examples
# Create a custom time representation using Gregorian units
hms <- new_cyclical_time_fn(
chronon = second(1L),
cycle = hour(1L)
)