]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Implemented a Wiki suggestion:
authorTim Peters <tim.peters@gmail.com>
Sun, 22 Dec 2002 03:43:39 +0000 (03:43 +0000)
committerTim Peters <tim.peters@gmail.com>
Sun, 22 Dec 2002 03:43:39 +0000 (03:43 +0000)
commit855fe88b241a512d21b7c716fcae88331ae50a98
tree1f8a5d88c5c76d4701bd80d28178e5e7384a2868
parent18091540db294eb4566129a9b8bacb85a676a205
Implemented a Wiki suggestion:

{timetz,datetimetz}.{utcoffset,dst}() now return a timedelta (or None)
instead of an int (or None).

tzinfo.{utcoffset,dst)() can now return a timedelta (or an int, or None).

Curiously, this was much easier to do in the C implementation than in the
Python implementation (which lives in the Zope3 code tree) -- the C code
already had lots of hair to extract C ints from offset objects, and used
C ints internally.
Lib/test/test_datetime.py
Modules/datetimemodule.c