<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 24, 2015 at 1:06 PM, Tim Peters <span dir="ltr"><<a href="mailto:tim.peters@gmail.com" target="_blank">tim.peters@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":1u4" class="a3s" style="overflow:hidden">Just one suggestion:  force the year/timestamp into a 400-year span<br>
starting at 1971 first (via adding/subtracting multiples of 400<br>
years).  Then not even Windows will blow up ;-)</div></blockquote></div><br>This will work for the future dates (and I think I should use 2100 through 2399 range to avoid extending not-regular rules into the far future).  For the far in the past dates, I still think the earliest transition to standard time should be used as the "big bang" transition.   Note that the 400 year hack does not work for systems with 32-bit time_t.  I think it is ok to just raise OverflowError on those whenever a timezone operation is requested on a date outside of EPOCH ± 2**31 range.  That's about 140 years.</div></div>