dtt_adjust_tz | R Documentation |
Adjusts the time zone so that clock (but not the actual) time is altered
for a date time vector.
Equivalent to lubridate::with_tz()
.
dtt_adjust_tz(x, tz = dtt_default_tz(), ...)
## S3 method for class 'POSIXct'
dtt_adjust_tz(x, tz = dtt_default_tz(), ...)
x |
A POSIXct vector. |
tz |
A string of the time zone. |
... |
Unused. |
The date time vector with the new time zone and time.
dtt_adjust_tz(POSIXct)
: Adjust the time zone for a POSIXct vector
dtt_set_tz()
Other tz:
dtt_set_tz()
,
dtt_sys_tz()
,
dtt_tz()
dtt_adjust_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.