Sys.timezone()
[1] "CST"
as.POSIXct("2012-12-12",tz="CST")
[1] "2012-12-12 GMT"
There were 13 warnings (use warnings() to see them)
I've set tz to CST, but the output is GMT, with warning messages, what went wrong?
Edit:
My OS is windows 7
warnings are:
Warning messages:
1: In strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) : unknown timezone 'CST'
2: In as.POSIXct.POSIXlt(x) : unknown timezone 'CST'
3: In strptime(xx, f <- "%Y/%m/%d %H:%M:%OS", tz = tz) : unknown timezone 'CST'
4: In as.POSIXct.POSIXlt(x) : unknown timezone 'CST'
5: In strptime(xx, f <- "%Y-%m-%d %H:%M", tz = tz) : unknown timezone 'CST'
6: In as.POSIXct.POSIXlt(x) : unknown timezone 'CST'
7: In strptime(xx, f <- "%Y/%m/%d %H:%M", tz = tz) : unknown timezone 'CST'
8: In as.POSIXct.POSIXlt(x) : unknown timezone 'CST'
9: In strptime(xx, f <- "%Y-%m-%d", tz = tz) : unknown timezone 'CST'
10: In as.POSIXct.POSIXlt(x) : unknown timezone 'CST'
11: In strptime(x, f, tz = tz) : unknown timezone 'CST'
12: In as.POSIXct.POSIXlt(as.POSIXlt(x, tz, ...), tz, ...) :
unknown timezone 'CST'
13: In as.POSIXlt.POSIXct(x, tz) : unknown timezone 'CST'