<div dir="ltr"><div>Script started on Mon, Jul 07, 2014  3:31:25 PM<br>$ cat fake<br>Rule    Fake    2014    max    -    Feb    29    2:00    1    D<br>Rule    Fake    2014    max    -    Oct    31    3:00    0    S<br><br>
Zone    Fake    0    Fake    F%sT<br>$ ./zic fake<br>&quot;fake&quot;, line 4: use of 2/29 in non leap-year (rule from &quot;fake&quot;, line 1)<br>$ exit<br>Script done on Mon, Jul 07, 2014  3:31:32 PM<br><br></div>    @dashdashado<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jul 7, 2014 at 3:09 PM, Jon Skeet <span dir="ltr">&lt;<a href="mailto:skeet@pobox.com" target="_blank">skeet@pobox.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">I&#39;m just going through my <a href="http://nodatime.org" target="_blank">Noda Time</a> code for time zone handling, and I&#39;ve noticed I&#39;m being even more defensive than normal, by handling the situation where a time zone transition is specified to occur on the 29th of February - I skip forward or backwards to the nearest leap year.<div>


<br></div><div>This feels like it&#39;s overkill to me, and that it would be better just to prohibit this situation from occurring in my code, <i>if</i> it&#39;s widely accepted to be invalid data.</div><div><br></div><div>


Is there anything specifying the behaviour if such data is presented? I could try running the zoneinfo compiler myself, but I suspect it would take a long time to get all the tools sorted, and I wouldn&#39;t be certain of interpreting the outcome properly. If anyone just <i>knows,</i> that would save me a lot of effort :)</div>
<span class="HOEnZb"><font color="#888888">

<div><br></div><div>Jon</div><div><br></div></font></span></div>
</blockquote></div><br></div>