From: Alexander Belopolsky Date: Wed, 4 May 2011 14:28:26 +0000 (-0400) Subject: Mention that timezone is a subclass of tzinfo. X-Git-Tag: v3.3.0a1~2409 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6d3c9a6893c0ba7e1f48534dfd2664d76bea7570;p=thirdparty%2FPython%2Fcpython.git Mention that timezone is a subclass of tzinfo. --- diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst index d53d4a612a4c..8371bde85969 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])