Gets the smallest units for a date time vector. The possible values are 'seconds', 'minutes', 'hours', 'days', 'months' or 'years'.
Usage
dtt_units(x, ...)
# S3 method for class 'Date'
dtt_units(x, ...)
# S3 method for class 'POSIXct'
dtt_units(x, ...)
# S3 method for class 'hms'
dtt_units(x, ...)
Methods (by class)
dtt_units(Date)
: Get time units for a Date vectordtt_units(POSIXct)
: Get time units for a POSIXct vectordtt_units(hms)
: Get time units for a hms vector
See also
Other units:
dtt_adjust_units()
,
dtt_units_per_unit()