Learn R Programming

dttr2 (version 0.5.2)

dtt_tz: Get, Set or Adjust Time Zone

Description

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

Usage

dtt_tz(x, ...)

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

Value

A string of the time zone.

Arguments

x

A date/time vector.

...

Unused.

Methods (by class)

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

See Also

Other tz: dtt_adjust_tz(), dtt_set_tz(), dtt_sys_tz()

Examples

Run this code
dtt_tz(as.POSIXct("1970-01-01", tz = "Etc/GMT+8"))

Run the code above in your browser using DataLab