This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steveire
Recipients docs@python, steveire
Date 2011-12-26.22:01:52
SpamBayes Score 8.7994095e-10
Marked as misclassified No
Message-id <1324936913.94.0.649454454071.issue13666@psf.upfronthosting.co.za>
In-reply-to
Content
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'.
History
Date User Action Args
2011-12-26 22:01:54steveiresetrecipients: + steveire, docs@python
2011-12-26 22:01:53steveiresetmessageid: <1324936913.94.0.649454454071.issue13666@psf.upfronthosting.co.za>
2011-12-26 22:01:53steveirelinkissue13666 messages
2011-12-26 22:01:52steveirecreate