Gets, sets or the time zone for a date time vector.

dtt_tz(x, ...)

# S3 method for POSIXct
dtt_tz(x, ...)

Arguments

x

A date/time vector.

...

Unused.

Value

A string of the time zone.

Methods (by class)

  • dtt_tz(POSIXct): Get the time zone for a POSIXct vector.

See also

Examples

dtt_tz(as.POSIXct("1970-01-01", tz = "Etc/GMT+8"))
#> [1] "Etc/GMT+8"