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
2 messages · Paul Ossenbruggen, Louis Springer
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
Posix time is UTC or GMT and you displayed that as EDT. 16:00 EDT is 20:00 GMT/UTC
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