[R] Bug on chron

Gabor Grothendieck ggrothendieck at gmail.com
Thu Sep 9 18:14:38 CEST 2010


On Thu, Sep 9, 2010 at 11:59 AM, skan <juanpide at gmail.com> wrote:
>
> hello
>
> I think I've found a bug
> I don't know if it's a chron bug or a R one.
>
> (05/12/05 23:00:00) +1/24  gives
> (05/12/05 24:00:00)
> instead of
> (05/13/05 00:00:00)
> it looks like the same but it's not because when you get the date of this
> datetime it says day 12 instead of 13.
>


I can't reproduce such behavior:

> library(chron)
> x <- chron("05/12/05", "23:00:00") + 1/24; x
[1] (05/13/05 00:00:00)
> month.day.year(x)$day
[1] 13
> packageDescription("chron")$Version
[1] "2.3-36"
> R.version.string
[1] "R version 2.11.1 Patched (2010-05-31 r52167)"
> win.version()
[1] "Windows Vista (build 6002) Service Pack 2"



-- 
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com



More information about the R-help mailing list