
In fact, I've only just realized that there's no reason I need to use zdump here - as the output file format from zic is clearly documented, I can just consume that directly. That should make things a lot simpler (from my C#-oriented perspective, of course - changes to zdump may well still be appropriate...) Jon On 19 July 2015 at 06:49, Jon Skeet <skeet@pobox.com> wrote:
I'd be happy with that behaviour, yes. I don't know how to extract it from the current zdump output though (or indeed any transitions before 1900).
Jon
On 19 July 2015 at 01:54, Howard Hinnant <howard.hinnant@gmail.com> wrote:
On Jul 18, 2015, at 6:25 PM, Paul Eggert <eggert@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/618cd7be060b02a923af60c0eb866a6...
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