Gets the smallest units for a date time vector. The possible values are 'seconds', 'minutes', 'hours', 'days', 'months' or 'years'.
dtt_units(x, ...)
# S3 method for Date
dtt_units(x, ...)
# S3 method for POSIXct
dtt_units(x, ...)
# S3 method for hms
dtt_units(x, ...)
A Date, POSIXct or hms vector.
Unused.
A string indicating the date time units.
dtt_units(Date)
: Get time units for a Date vector
dtt_units(POSIXct)
: Get time units for a POSIXct vector
dtt_units(hms)
: Get time units for a hms vector
Other units:
dtt_adjust_units()
,
dtt_units_per_unit()