Adjust the time zone and time.

dtt_adjust_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 and time.

See also

Examples

dtt_adjust_tz(Sys.time(), tz = "UTC")
#> [1] "2020-03-05 21:39:59 UTC"