dtt_set_tz | R Documentation |
Sets the time zone for a date time vector without adjusting the clock time.
Equivalent to lubridate::force_tz()
.
dtt_set_tz(x, tz = dtt_default_tz(), ...)
## S3 method for class 'POSIXct'
dtt_set_tz(x, tz = dtt_default_tz(), ...)
x |
A date/time vector. |
tz |
A string of the new time zone. |
... |
Unused. |
The date time vector with the new time zone.
dtt_set_tz(POSIXct)
: Set the time zone for a POSIXct vector
dtt_adjust_tz()
Other tz:
dtt_adjust_tz()
,
dtt_sys_tz()
,
dtt_tz()
dtt_set_tz(as.POSIXct("1970-01-01", tz = "Etc/GMT+8"), tz = "UTC")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.