The documentation is in zic.8.txt.<br><br>I share your confusion. If Paul (Eggert's) description is right, then I have to ignore the TO field in some circumstances which are entirely unclear to me. I would much rather see the TO field corrected. That is, if TO=1942 is ignored, and 1945 is the real date, then the line should be corrected to TO=1945.
<br><br>There are other failures in the parsing. My error messages are:<br><br>??? Format too short: '' under Europe/Amsterdam;<br>??? Format too short: 'S' under Europe/Amsterdam;<br>??? Format too short: '' under Europe/Moscow;
<br>??? Format too short: 'S' under Europe/Moscow;<br><br>I looked into why this is happening, and found:<br><br>Zone Europe/Amsterdam&nbsp;&nbsp;&nbsp; 0:19:32 -&nbsp;&nbsp;&nbsp; LMT&nbsp;&nbsp;&nbsp; 1835<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 0:19:32&nbsp;&nbsp;&nbsp; Neth&nbsp;&nbsp;&nbsp; %s&nbsp;&nbsp;&nbsp; 1937 Jul&nbsp; 1<br><br>
But the first LETTER/S defined by Neth is in 1916, so during the range from 1835 to 1916 this is undefined. If the LETTER/S are magically also defined *before* the first FROM, that should be described in the specification.
<br><br>Mark<br><br>BTW, the documentation was a first a bit confusing to me, since it says that fields are delimited by spaces, and lists a single Zone UNTIL field. However, if you look carefully at the documentation, there are really 4 fields:
<br><br>UNTIL_YEAR UNTIL_IN UNTIL_ON UNTIL_AT<br><br>which are optional [but only in &quot;truncation&quot; from the end: that is, it corresponds to the (Perl) regex (UNTIL_YEAR (UNTIL_IN (UNTIL_ON (UNTIL_AT)?)?)?)?]. <br>
<br>I'm not the only one to have initially made this mistake: the proposed XML format for the TZ database makes the same mistake.<br><br><br><div><span class="gmail_quote">On 9/27/06, <b class="gmail_sendername">Paul Schauble
</b> &lt;<a href="mailto:Paul.Schauble@ticketmaster.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
Paul.Schauble@ticketmaster.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Then I'm confused. At the end of 1942, that rule should expire, because
<br>of the &quot;only&quot; leaving what rule in effect? Apparently none, leaving the<br>time in 1943 undefined.<br><br>Where can I find a explanation of the tz text database format?<br><br>&nbsp;&nbsp;Thanks,<br>&nbsp;&nbsp;&nbsp;&nbsp;++PLS<br><br>
-----Original Message-----
<br>From: <a href="mailto:tz-request@elsie.nci.nih.gov" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">tz-request@elsie.nci.nih.gov</a> [mailto:<a href="mailto:tz-request@elsie.nci.nih.gov" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
tz-request@elsie.nci.nih.gov</a>]<br>On Behalf Of Paul Eggert<br>Sent: Wednesday, September 27, 2006 9:29 AM
<br>To: <a href="mailto:tz@lecserver.nci.nih.gov" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">tz@lecserver.nci.nih.gov</a><br>Subject: Re: Question on abbreviations<br><br>&quot;Mark Davis&quot; &lt;
<a href="mailto:mark.davis@icu-project.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mark.davis@icu-project.org
</a>&gt; writes:<br><br>&gt; According to the spec, TO = &quot;only&quot; is equivalent to saying that the TO<br>value<br>&gt; equals the FROM value.<br><br>Yes, that's what's happening here.&nbsp;&nbsp;The rule to switch to DST applies
<br>only in 1942.&nbsp;&nbsp;There is no rule to switch _out_ of DST in 1942, so DST<br>continues until 1945, the next rule that applies.<br><br>&gt;&gt; Rule&nbsp;&nbsp;&nbsp;&nbsp;NAME&nbsp;&nbsp;&nbsp;&nbsp;FROM&nbsp;&nbsp;&nbsp;&nbsp;TO&nbsp;&nbsp;&nbsp;&nbsp;TYPE&nbsp;&nbsp;&nbsp;&nbsp;IN&nbsp;&nbsp;&nbsp;&nbsp;ON&nbsp;&nbsp;&nbsp;&nbsp;AT&nbsp;&nbsp;&nbsp;&nbsp;SAVE<br>LETTER/S<br>
&gt;&gt; &gt; ...
<br>&gt;&gt; &gt; Rule&nbsp;&nbsp;&nbsp;&nbsp;US&nbsp;&nbsp;&nbsp;&nbsp;1942&nbsp;&nbsp;&nbsp;&nbsp;only&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;&nbsp;&nbsp;&nbsp;Feb&nbsp;&nbsp;&nbsp;&nbsp;9&nbsp;&nbsp;&nbsp;&nbsp;2:00&nbsp;&nbsp;&nbsp;&nbsp;1:00&nbsp;&nbsp;&nbsp;&nbsp;W #<br>War<br>&gt;&gt; &gt; Rule&nbsp;&nbsp;&nbsp;&nbsp;US&nbsp;&nbsp;&nbsp;&nbsp;1945&nbsp;&nbsp;&nbsp;&nbsp;only&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;&nbsp;&nbsp;&nbsp;Aug&nbsp;&nbsp;&nbsp;&nbsp;14&nbsp;&nbsp;&nbsp;&nbsp;23:00u&nbsp;&nbsp;&nbsp;&nbsp;1:00&nbsp;&nbsp;&nbsp;&nbsp;P<br>#<br></blockquote></div><br>