[R] as.POSIXct questions

Jack Tanner ihok at hotmail.com
Thu Jul 19 22:31:31 CEST 2012


The following three calls all produce the same result (my machine is in EST):

> as.POSIXct(0, tz="", origin=ISOdatetime(1970,1,1,10,0,0)) 
[1] "1970-01-01 10:00:00 EST"
> as.POSIXct(0, tz="EST", origin=ISOdatetime(1970,1,1,10,0,0)) 
[1] "1970-01-01 10:00:00 EST"
> as.POSIXct(0, tz="GMT", origin=ISOdatetime(1970,1,1,10,0,0)) 
[1] "1970-01-01 10:00:00 EST"

EST is -5:00 GMT. Is it a bug that the third call above does not produce

[1] "1970-01-01 5:00:00 EST"

?

(Under R 2.15.1, Windows 64-bit)



More information about the R-help mailing list