Floors a date/time vector
Usage
dtt_floor(x, units, ...)
# S3 method for class 'Date'
dtt_floor(x, units = "days", ...)
# S3 method for class 'POSIXct'
dtt_floor(x, units = "seconds", ...)
# S3 method for class 'hms'
dtt_floor(x, units = "seconds", ...)
Methods (by class)
dtt_floor(Date)
: Floor a Date vectordtt_floor(POSIXct)
: Floor a POSIXct vectordtt_floor(hms)
: Floor a hms vector
See also
Other floor:
dtt_date()
,
dtt_date_time()
,
dtt_excel_to_date()
,
dtt_floored()
,
dtt_set_time()
Examples
dtt_floor(hms::as_hms("23:59:59"), "hours")
#> 23:00:00