# NOT RUN {
x <- ymd("2012-03-26")
tz(x)
tz(x) <- "GMT"
x
# }
# NOT RUN {
tz(x) <- "America/New_York"
x
tz(x) <- "America/Chicago"
x
tz(x) <- "America/Los_Angeles"
x
tz(x) <- "Pacific/Honolulu"
x
tz(x) <- "Pacific/Auckland"
x
tz(x) <- "Europe/London"
x
tz(x) <- "Europe/Berlin"
x
# }
# NOT RUN {
Sys.setenv(TZ = "GMT")
now()
tz(now())
Sys.unsetenv("TZ")
# }
Run the code above in your browser using DataLab