Re: [R] bug in difftime with as.POSIXct

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Sun, 27 Jan 2008 14:33:20 -0500

Read relevant article in R News 4/1.

On Jan 27, 2008 2:20 PM, Dan Kelley <Dan.Kelley_at_dal.ca> wrote:
>
> Oh, I'm sorry to be posting a reply to my own stupid question, but the
> problem is that I had not specified GMT, and so it was using local time,
> which changes to 'save daylight". This is demonstrated below:
>
> > unclass(as.POSIXct("1975-04-27",tz="GMT"))[1]-unclass(as.POSIXct("1975-04-28",tz="GMT"))[1]
> [1] -86400
> > unclass(as.POSIXct("1975-04-27"))[1]-unclass(as.POSIXct("1975-04-28"))[1]
> [1] -82800
>
> --
> View this message in context: http://www.nabble.com/bug-in-difftime-with-as.POSIXct-tp15122749p15122755.html
>
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Sun 27 Jan 2008 - 19:38:35 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 27 Jan 2008 - 23:30:08 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive