new_time_unit(x = 1L, ..., class = NULL)
Arguments
- x
The number of units (must be an integer of length 1).
- ...
Additional attributes of the time unit (for example, timezones).
- class
The class of the unit. Recommended class format is "tu_*", for
example, "tu_month".
Details
A time unit describes the granularity of a calendar. The time unit class is
used to identify how different time units nest another.