[Datetime-SIG] Computing .dst() as a timedelta

Alexander Belopolsky alexander.belopolsky at gmail.com
Sun Sep 20 02:43:17 CEST 2015


On Sat, Sep 19, 2015 at 8:30 PM, Tim Peters <tim.peters at gmail.com> wrote:

> > Maybe I should hand-code this rule as demo/test case.
>
> This is soooo sad - you're clearly becoming a timezone wonk ;-)


No, I just want to close the timezone issue in Python once and for all.
Despite its reputation, the issue is trivial: its all about a bunch of
piecewise constant functions and very simple expressions like x + f(x).

BTW, how do you like my new algorithm for inverting x + f(x)?

https://github.com/abalkin/cpython/blob/7c30620c1789ee6ecead945513e2b34ce0c24d26/Lib/test/datetimetester.py#L4328
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/datetime-sig/attachments/20150919/12c561ed/attachment.html>


More information about the Datetime-SIG mailing list