From maechler at stat.math.ethz.ch  Thu May 18 17:46:08 2017
From: maechler at stat.math.ethz.ch (Martin Maechler)
Date: Thu, 18 May 2017 17:46:08 +0200
Subject: [Rd] [R] R-3.4.0 fails test
In-Reply-To: <5854D32F-A43D-4002-8F0F-6DD0D7888B5C@gmail.com>
References: <20170517074216.GA4553@slingshot.co.nz>
 <4a086fbb-61ed-d3a5-ce23-14bbaea5531f@gmail.com>
 <ACA47D66-F469-4C75-8521-CB0DD76572C7@gmail.com>
 <20170518090016.GB4553@slingshot.co.nz>
 <29540304-FC8B-4B49-B94B-E191DEFA3BCB@gmail.com>
 <CAO1zAVarefFWaW_UmN6gCN3ppVuaGhLO7ErYdpUJmbfJ6rb4XQ@mail.gmail.com>
 <CAO1zAVb2T3roWLU4FxhvjxJz31wRp8oYtCeHc2e8V8KOprP1DA@mail.gmail.com>
 <18013A70-4C15-4A20-8626-578C91BF80DB@gmail.com>
 <B736344B-9330-48FA-AB1D-17B76771673A@iarc.fr>
 <5854D32F-A43D-4002-8F0F-6DD0D7888B5C@gmail.com>
Message-ID: <22813.49600.238510.855887@stat.math.ethz.ch>


> > On 18 May 2017, at 14:58 , Martyn Plummer <plummerM at iarc.fr> wrote:
> > 
> >> On 18 May 2017, at 14:51, peter dalgaard <pdalgd at gmail.com> wrote:

> >>> On 18 May 2017, at 13:47 , Joris Meys <jorismeys at gmail.com> wrote:
> >>> 
> >>> Correction: Also dlt uses the default timezone, but POSIXlt is not recalculated whereas POSIXct is. Reason for that is the different way values are stored (hours, minutes, seconds as opposed to minutes from origin, as explained in my previous mail)
> >>> 
> >> 
> >> I would suspect that there is something more subtle going on, New Zealand time is 10, 11, or 12 hours from Central European, depending on time of year (10 in our Summer, 12 in theirs and 11 during the overlap at both ends, if you must know), and we are talking a 1 hour difference.  
> >> 
> >> However DST transitions were both in March/April, so that's not it. Maybe a POSIX[lc]t expert can comment?
> > 
> > If I change the month from December to June then I see the same phenomenon in my Europe/Paris time zone. The issue seems to be that, for the date chosen for the test, Summer/daylight savings time is in force in NZ and some other parts of the southern hemisphere , but not in the northern hemisphere.
> > 

> Of course! I overlooked that the date in the test is the issue, not the current date. (Let's blame that on the fact that Summer seems to have finally arrived in Copenhagen...)

> "svn praise" claims this test is due to Martin Maechler in r71742, so maybe he knows how to fix it. (I wonder if he just used the current date at the time, or actually thought that there would be no DST issues in December ;-) )

> -pd

I think the former.  This was about fixing a segmentation fault problem
 (thread from Dec 6, 2016, on the R-devel mailing list, starting
  here: https://stat.ethz.ch/pipermail/r-devel/2016-December/073448.html )
mostly,  but the 2nd part of the regression test evidently needs
more thought than I had put there.

Being pretty "stretched" time wise currently, I'm happy for
timezone-portable propositions to change the test.

Martin



[Rd] [R] R-3.4.0 fails test
Martin Maechler