<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 27, 2015 at 3:21 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:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div id=":1aw" class="" style="overflow:hidden">(1) mktime is a neither cheap nor reliable (in all cases) way to compute is_dst; and, </div></blockquote></div><br>Moreover, there are cases where it is not even possible to tell whether DST is in effect or not.  For example, when Moscow switched from permanent summer time  to permanent winter time last year and Russia revised its entire map of 7 time zones they did not tell anyone what the new value of tm_isdst should be.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Taking my favorite example of 1990 Kiev, Ukraine.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Running on Linux:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">$ zdump -v  -c 1992 Europe/Kiev| grep 1990</div><div class="gmail_extra">Europe/Kiev  Sat Jun 30 22:59:59 1990 UTC = Sun Jul  1 01:59:59 1990 MSK isdst=0 gmtoff=10800</div><div class="gmail_extra">Europe/Kiev  Sat Jun 30 23:00:00 1990 UTC = Sun Jul  1 01:00:00 1990 EET isdst=0 gmtoff=7200</div></div><div class="gmail_extra"><br></div><div class="gmail_extra">Running on a Mac:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">$ zdump -v Europe/Kiev| grep 1990</div><div class="gmail_extra">Europe/Kiev  Sat Mar 24 22:59:59 1990 UTC = Sun Mar 25 01:59:59 1990 MSK isdst=0</div><div class="gmail_extra">Europe/Kiev  Sat Mar 24 23:00:00 1990 UTC = Sun Mar 25 03:00:00 1990 MSD isdst=1</div><div class="gmail_extra">Europe/Kiev  Sat Jun 30 21:59:59 1990 UTC = Sun Jul  1 01:59:59 1990 MSD isdst=1</div><div class="gmail_extra">Europe/Kiev  Sat Jun 30 22:00:00 1990 UTC = Sun Jul  1 01:00:00 1990 EEST isdst=1</div><div class="gmail_extra"><br></div><div class="gmail_extra">From either of the output above, can you tell me what color was the bear?</div></div></div>