R/toGMT.R
toGMT.Rd
The function transforms a POSIXct object in any given time zone to GMT.
POSIXct
toGMT(time)
Time, a POSIXct object.
A a POSIXct object, in GMT.
time = as.POSIXct("1999-01-01 12:00:00", tz = "Asia/Jerusalem") toGMT(time) #> [1] "1999-01-01 10:00:00 GMT"