dtt_default_tz: Get, Set or Reset Default Time Zone

View source: R/tz.R

dtt_sys_tzR Documentation

Get, Set or Reset Default Time Zone

Description

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

## Not run: 
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()

## End(Not run)

dttr2 documentation built on Sept. 26, 2024, 1:06 a.m.