]> granicus.if.org Git - python/commit
The tzinfo methods utcoffset() and dst() must return a timedelta object
authorTim Peters <tim.peters@gmail.com>
Thu, 2 Jan 2003 21:28:08 +0000 (21:28 +0000)
committerTim Peters <tim.peters@gmail.com>
Thu, 2 Jan 2003 21:28:08 +0000 (21:28 +0000)
commit397301eccb945ea98d03d3022882900a9fd2046f
tree3990642065d13899df8b7ba51d7aeec68836be28
parent4abd5f0fce54d32fbe01207e505047bd82ff9ca3
The tzinfo methods utcoffset() and dst() must return a timedelta object
(or None) now.  In 2.3a1 they could also return an int or long, but that
was an unhelpfully redundant leftover from an earlier version wherein
they couldn't return a timedelta.  TOOWTDI.
Doc/lib/libdatetime.tex
Doc/lib/tzinfo-examples.py
Lib/test/test_datetime.py
Misc/NEWS
Modules/datetimemodule.c