<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 24, 2015 at 7:01 PM, Carl Meyer <span dir="ltr"><<a href="mailto:carl@oddbird.net" target="_blank">carl@oddbird.net</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=":16e" class="" style="overflow:hidden">On 08/24/2015 03:58 PM, ISAAC J SCHWABACHER wrote:<br>
> [ijs]<br>
<span class="">>>> I see how PEP 495 makes it possible to convert datetimes correctly<br>
>>> in all cases,<br>
>><br>
</span>> [Tim Peters]<br>
<span class="">>> Whew!  You may well be only the second person to grasp this - thanks :-)<br>
><br>
> Wait... was this ever in contention?<br>
<br>
</span>I don't think so. I'm not sure what Tim is referring to here; I haven't<br>
seen any messages in this thread that indicated a lack of understanding<br>
on this point.</div></blockquote></div><br>I cannot speak for Tim, but here is an exercise you can try to check your grasp of PEP 495: given PEP-compliant utcoffset() and dst() methods for the current rules in the US/Eastern timezone, write a PEP-compliant fromutc().   You can start from the current datetime.py implementation. [1]</div><div class="gmail_extra"><br></div><div class="gmail_extra">[1]: <a href="https://hg.python.org/cpython/file/v3.5.0rc1/Lib/datetime.py#l957">https://hg.python.org/cpython/file/v3.5.0rc1/Lib/datetime.py#l957</a>  </div></div>