| commit | 855fe88b241a512d21b7c716fcae88331ae50a98 | [log] [tgz] |
|---|---|---|
| author | Tim Peters <tim.peters@gmail.com> | Sun Dec 22 03:43:39 2002 +0000 |
| committer | Tim Peters <tim.peters@gmail.com> | Sun Dec 22 03:43:39 2002 +0000 |
| tree | 1f8a5d88c5c76d4701bd80d28178e5e7384a2868 | |
| parent | 18091540db294eb4566129a9b8bacb85a676a205 [diff] |
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.