Sets the time zone without adjusting the time.

dtt_set_tz(x, tz = dtt_sys_tz(), ...)

Arguments

x

A POSIXct vector.

tz

A string of the new time zone.

...

Unused.

Value

The POSIXct vector with the new time zone.

See also

Examples

dtt_set_tz(Sys.time(), tz = "UTC")
#> [1] "2020-03-05 13:40:02 UTC"