]> granicus.if.org Git - python/commitdiff
Mention that timezone is a subclass of tzinfo.
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>
Wed, 4 May 2011 14:28:26 +0000 (10:28 -0400)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>
Wed, 4 May 2011 14:28:26 +0000 (10:28 -0400)
Doc/library/datetime.rst

index d53d4a612a4cc39f3996b2a43b0835b5e5355fa4..8371bde8596978e0baf4ed20e592cc23dcf2f12c 100644 (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])