
force_tz(time, tzone="")
Sys.timezone
for more information on how R
recognizes time zones.force_tz
x <- as.POSIXct("2009-08-07 00:00:01", tz = "America/New_york")
force_tz(x, "GMT")
# "2009-08-07 00:00:01 GMT"}
Run the code above in your browser using DataLab