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

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to