summaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>2011-05-04 10:28:26 -0400
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>2011-05-04 10:28:26 -0400
commitd869f8c71e945ea67131903682186bb6cb6586aa (patch)
tree5ba1470d2d2a3d6413c87da08076a42df75874c3 /Doc
parent1cd1583ca6ffcb9be8af08a7b3197f6573ebc81d (diff)
downloadcpython-d869f8c71e945ea67131903682186bb6cb6586aa.tar.gz
Mention that timezone is a subclass of tzinfo.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/datetime.rst11
1 files changed, 6 insertions, 5 deletions
diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst
index d53d4a612a..8371bde859 100644
--- a/Doc/library/datetime.rst
+++ b/Doc/library/datetime.rst
@@ -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])