dtt_sys_tz {dttr2}R 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

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)

[Package dttr2 version 0.5.0 Index]