[R] unexpected conversion from POSIXlt to POSIXct

Paul MacManus paul.macmanus at gmail.com
Fri Dec 22 19:47:39 CET 2006


The documentation for DateTime classes in R 2.3.0 says that limited
arithmetic is available for both POSIXlt and POSIXct. It needs to make
clear that POSIXlt can be converted to POSIXct without warning under
arithmetic operations

EXAMPLE

ISOdatetime(2003, 1, 1, 0, 0,0) -> dd
as.POSIXlt(dd) -> dd          ## set class of dd to POSIXlt
dd+1 -> ee                        ## ee now has class POSIXct



More information about the R-help mailing list