Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Hi Hadley, yes for instance

> as.chron("1970-01-01")+unclass(as.chron("2001-04-01")) [1] 04/01/01

> as.POSIXct("1970-01-01","EST")+unclass(as.POSIXct("2014-06-01","EST")) [1] "2014-06-01 05:00:00 EST"

If there is any conversion necessary it is difficult to get back the original intended time.



What does adding two dates together mean?


Isn't this the conventional way of converting variables which have been coerced to their numeric representations back to time/date classes?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: