dtt_floor | R Documentation |
Floors a date/time vector
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", ...)
x |
A date/time vector. |
units |
A string of the time units. The possible values are "secs", "minutes", "hours", "days" or "weeks". |
... |
Unused. |
The floored date/time vector.
dtt_floor(Date)
: Floor a Date vector
dtt_floor(POSIXct)
: Floor a POSIXct vector
dtt_floor(hms)
: Floor a hms vector
Other floor:
dtt_date()
,
dtt_date_time()
,
dtt_excel_to_date()
,
dtt_floored()
,
dtt_set_time()
dtt_floor(hms::as_hms("23:59:59"), "hours")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.