[tz] Proposal: validation text file with releases
Howard Hinnant
howard.hinnant at gmail.com
Sun Jul 19 00:54:19 UTC 2015
On Jul 18, 2015, at 6:25 PM, Paul Eggert <eggert at cs.ucla.edu> wrote:
>
> Jon Skeet wrote:
>> In Noda Time, if I don't find a rule leading "into" the transition period, I take the name of the first rule with no daylight savings.
>> zic appears to implement equivalent behaviour
>
> Yes, that's the intent.
I’ve updated my parser with this behavior:
https://github.com/HowardHinnant/date/commit/618cd7be060b02a923af60c0eb866a6cbd630a96
And here is the updated validation file for 2015e:
http://howardhinnant.github.io/tzdata2015e-tzvalidate.txt.zip
The only difference I’m now seeing from Jon’s:
http://nodatime.org/tzvalidate/tzdata2015e-tzvalidate.zip
is associated with years 1904 and prior, which Jon has already explained.
Thanks Jon and Paul for the explanation of the lookup rules for when one "falls off the front.”
I have one suggestion for the validation file:
Some timezones have no transition period and are labeled like so:
EST
Fixed: -05:00:00 EST
My recommendation is to change this to:
EST
Initially: -05:00:00 standard EST
And furthermore have every timezone do this. For example:
Europe/Amsterdam
Initially: +00:19:32 standard LMT
1834-12-31T23:40:28Z +00:19:32 standard AMT
1916-04-30T23:40:28Z +01:19:32 daylight NST
...
instead of:
Europe/Amsterdam
1834-12-31T23:40:28Z +00:19:32 standard AMT
1916-04-30T23:40:28Z +01:19:32 daylight NST
...
Howard
More information about the tz
mailing list