Posix time is UTC or GMT and you displayed that as EDT. 16:00 EDT is 20:00 GMT/UTC
On Sep 23, 2014, at 3:09 PM, Paul Ossenbruggen <[email protected]> wrote: > 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 > [email protected] > https://stat.ethz.ch/mailman/listinfo/r-sig-mac _______________________________________________ R-SIG-Mac mailing list [email protected] https://stat.ethz.ch/mailman/listinfo/r-sig-mac
