[R] time zones and the chron to POSIXct conversion
Jannis
bt_jannis at yahoo.de
Fri Jun 15 09:25:27 CEST 2012
Hey R folks,
i found some strange (to me) behaviour with chron to POSIXct conversion.
The two lines of code result in two different results, on ewith the
correct time zone, one without:
library(chron)
as.POSIXct(chron('12/12/2000'), tz = 'UTC')
as.POSIXlt(chron('12/12/2000'), tz = 'UTC')
Only the code below would give me a POSIXct object with the correct time
zone:
as.POSIXct(as.POSIXlt(chron('12/12/2000'), tz = 'UTC'))
Is this a bug or desired behaviour?
Thanks a lot
Jannis
More information about the R-help
mailing list