Mention that timezone is a subclass of tzinfo.

This commit is contained in:
Alexander Belopolsky 2011-05-04 10:28:26 -04:00
parent 4e86d5b88d
commit 6d3c9a6893
1 changed files with 6 additions and 5 deletions

View File

@ -1577,11 +1577,12 @@ only EST (fixed offset -5 hours), or only EDT (fixed offset -4 hours)).
:class:`timezone` Objects
--------------------------
A :class:`timezone` object represents a timezone that is defined by a
fixed offset from UTC. Note that objects of this class cannot be used
to represent timezone information in the locations where different
offsets are used in different days of the year or where historical
changes have been made to civil time.
The :class:`timezone` class is a subclass of :class:`tzinfo`, each
instance of which represents a timezone defined by a fixed offset from
UTC. Note that objects of this class cannot be used to represent
timezone information in the locations where different offsets are used
in different days of the year or where historical changes have been
made to civil time.
.. class:: timezone(offset[, name])