summaryrefslogtreecommitdiff
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
commit6d3c9a6893c0ba7e1f48534dfd2664d76bea7570 (patch)
treef1636a458381d22e144b341a27ae171313b4b726
parent4e86d5b88d96305a31a3acae5cea53824f4e8d21 (diff)
downloadcpython-git-6d3c9a6893c0ba7e1f48534dfd2664d76bea7570.tar.gz
Mention that timezone is a subclass of tzinfo.
-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])