Skip to contents

Get, Set or Reset Default Time Zone

Usage

dtt_sys_tz()

dtt_set_sys_tz(tz = NULL)

dtt_reset_sys_tz()

dtt_default_tz()

dtt_set_default_tz(tz = NULL)

dtt_reset_default_tz()

Arguments

tz

A string of the time zone.

Value

A string of the current or old time zone.

Functions

  • dtt_set_default_tz(): Set Default Time Zone

  • dtt_reset_default_tz(): Reset Default Time Zone

See also

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

Examples

if (FALSE) { # \dontrun{
dtt_default_tz()
old <- dtt_set_default_tz("Etc/GMT+8")
dtt_default_tz()
dtt_reset_default_tz()
dtt_default_tz()
dtt_set_default_tz(old)
dtt_default_tz()
} # }