[R-SIG-Mac] POSIXct and chron error
Lou Springer
lou at louspringer.com
Tue Sep 23 23:22:52 CEST 2014
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 <pjo at cisunix.unh.edu> 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
> R-SIG-Mac at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
More information about the R-SIG-Mac
mailing list