dtt_date_time | R Documentation |
Coerces vectors to floored POSIXct vectors.
dtt_date_time(x, ...)
## S3 method for class 'integer'
dtt_date_time(x, tz = dtt_default_tz(), ...)
## S3 method for class 'double'
dtt_date_time(x, tz = dtt_default_tz(), ...)
## S3 method for class 'character'
dtt_date_time(x, tz = dtt_default_tz(), ...)
## S3 method for class 'Date'
dtt_date_time(x, time = hms::as_hms("00:00:00"), tz = dtt_default_tz(), ...)
## S3 method for class 'POSIXct'
dtt_date_time(x, tz = dtt_tz(x), ...)
## S3 method for class 'hms'
dtt_date_time(x, date = dtt_date("1970-01-01"), tz = dtt_default_tz(), ...)
x |
A vector. |
... |
Unused. |
tz |
A string of the time zone. |
time |
A hms vector of the time. |
date |
A Date vector of the date. |
A floored POSIXct vector.
dtt_date_time(integer)
: Coerce integer vector to a floored POSIXct vector
dtt_date_time(double)
: Coerce double vector to a floored POSIXct vector
dtt_date_time(character)
: Coerce character vector to a floored POSIXct vector
dtt_date_time(Date)
: Coerce Date vector to a floored POSIXct vector
dtt_date_time(POSIXct)
: Coerce POSIXct vector to a floored POSIXct vector
dtt_date_time(hms)
: Coerce hms vector to a floored POSIXct vector
Other floor:
dtt_date()
,
dtt_excel_to_date()
,
dtt_floor()
,
dtt_floored()
,
dtt_set_time()
dtt_date_time(1L)
dtt_date_time(-1)
dtt_date_time(1, tz = "Etc/GMT+8")
dtt_date_time(as.Date("2000-01-02"))
dtt_date_time(as.Date("2000-01-02"), time = hms::as_hms("04:05:06"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.