Re: [R-pkg-devel] Surprised by as.Date() and lubridate::today()

2017-06-19 Thread Duncan Murdoch
On 19/06/2017 5:44 PM, Pedro J. Aphalo wrote: Hello, I was surprised first by the behaviour of lubridate::today(), and when I investigated further, by the behaviour of as.Date.POSIXlt(). Some examples follow: You've written to the wrong place. This list is for package developers. If you thin

[R-pkg-devel] Surprised by as.Date() and lubridate::today()

2017-06-19 Thread Pedro J. Aphalo
Hello, I was surprised first by the behaviour of lubridate::today(), and when I investigated further, by the behaviour of as.Date.POSIXlt(). Some examples follow: library(lubridate) # today() does not behave as I expected tz(now(tzone = "EET")) tz(today(tzone = "EET")) # UTC!! today("America/Ne