Skip to content

Incorrect DST time changes in DateTimeClasses

6 messages · Uwe Ligges, Andrew Digby, Jeff Newmiller

#
What OS are you using? It makes a difference.
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.
Andrew Digby <andrewdigby at mac.com> wrote:

            
#
On 06.12.2012 15:54, Jeff Newmiller wrote:
... and R version.

Uwe Ligges
#
Apologies - I intended to add that info at the end: OS X 10.8.2 and R 2.15.1.

Many thanks.
$platform
[1] "x86_64-apple-darwin9.8.0"
$arch
[1] "x86_64"
$os
[1] "darwin9.8.0"
$system
[1] "x86_64, darwin9.8.0"
$status
[1] ""
$major
[1] "2"
$minor
[1] "15.1"
$year
[1] "2012"
$month
[1] "06"
$day
[1] "22"
$`svn rev`
[1] "59600"
$language
[1] "R"
$version.string
[1] "R version 2.15.1 (2012-06-22)"
$nickname
[1] "Roasted Marshmallows"
On 7/12/2012, at 04:29 , Uwe Ligges <ligges at statistik.tu-dortmund.de> wrote:

            
#
I see this discontinuity at '2010-04-04 02:26:05' on my Windows 7 x64 with R 2.15.2. I also see it for time zone "America_Los_Angeles" at '2010-11-07 01:23:09'.

I am not entirely sure what the "correct" behavior should be, since the string does not specify whether it is in daylight or standard time, even though it could be either for any time between 2:00 and 3:00 (or 1:00 and 2:00 for "America/Los_Angeles").

In any event, if this is an issue it appears to be an Olsen timezone database issue, not an R issue.
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.
Andrew Digby <andrewdigby at mac.com> wrote:

            
1 day later
#
Thanks for confirming that it's a wider problem. I thought that /etc/localtime on my machine was the Olsen database, but presumably not, since the DST changes are correct in that file. Unless R is reading that file incorrectly?

I've ended up using chron (which ignores time zones and DST) and a custom DST file as a workaround.

Thanks again.
On 7/12/2012, at 11:20 , Jeff Newmiller <jdnewmil at dcn.davis.ca.us> wrote: