I am in the PDT timezone and I want to change the variable "s" to the GMT timezone. Any idea how?
s<-Sys.time()
s
as.POSIXct(s,"GMT")
OUTPUT
> s<-Sys.time()
> s
[1] "2015-06-17 17:56:17 PDT"
> as.POSIXct(s,"GMT")
[1] "2015-06-17 17:56:17 PDT" # <-- how do I get this in GMT??
Sys.setenv(TZ="GMT")
– Parrie