Message150272
There are several bugs on
http://docs.python.org/library/datetime.html
Section 8.1.6 references the method rzinfo.dst(), which does not exist. Presumably this should be tzinfo.dst().
Section 8.1.4 contains an implementation of a GMT2 timezone. There seems to be a bug in the utcoffset() and dst() implementations. The timedelta(hours=2) is in the dst() implementation, but it should be in the uctoffset() implementation.
The docs for tzinfo.utcoffset() start with 'Return offset of local time from UTC, in minutes east of UTC'. Other methods (eg dst()) also document that the unit to return should be 'minutes'. However, all code samples instead return a timedelta. The documentation I quoted should instead read 'Return offset of local time from UTC as a timedelta, or None'. |
|
Date |
User |
Action |
Args |
2011-12-26 22:01:54 | steveire | set | recipients:
+ steveire, docs@python |
2011-12-26 22:01:53 | steveire | set | messageid: <1324936913.94.0.649454454071.issue13666@psf.upfronthosting.co.za> |
2011-12-26 22:01:53 | steveire | link | issue13666 messages |
2011-12-26 22:01:52 | steveire | create | |
|