Discussion:
[R-SIG-Mac] POSIXct and chron error
Paul Ossenbruggen
2014-09-23 21:09:13 UTC
Permalink
Why does the following incorrectly subtract 4 hours from times = ?20:00:00??
date = "03/31/10"
times = "20:00:00"
as.POSIXct(chron(date, times, format=c(dates="M/D/Y", times="hh:mm:ss")))
[1] "2010-03-31 16:00:00 EDT?

Thanks,

Paul


[[alternative HTML version deleted]]
Lou Springer
2014-09-23 21:22:52 UTC
Permalink
Posix time is UTC or GMT and you displayed that as EDT. 16:00 EDT is 20:00 GMT/UTC
Post by Paul Ossenbruggen
Why does the following incorrectly subtract 4 hours from times = ?20:00:00??
date = "03/31/10"
times = "20:00:00"
as.POSIXct(chron(date, times, format=c(dates="M/D/Y", times="hh:mm:ss")))
[1] "2010-03-31 16:00:00 EDT?
Thanks,
Paul
[[alternative HTML version deleted]]
_______________________________________________
R-SIG-Mac mailing list
R-SIG-Mac at r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Loading...