[Python-checkins] cpython: Mention that timezone is a subclass of tzinfo.

alexander.belopolsky python-checkins at python.org
Wed May 4 16:28:49 CEST 2011


http://hg.python.org/cpython/rev/d2a27006237b
changeset:   69826:d2a27006237b
parent:      69823:be5b8d1ded34
user:        Alexander Belopolsky <alexander.belopolsky at gmail.com>
date:        Wed May 04 10:28:26 2011 -0400
summary:
  Mention that timezone is a subclass of tzinfo.

files:
  Doc/library/datetime.rst |  11 ++++++-----
  1 files changed, 6 insertions(+), 5 deletions(-)


diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst
--- a/Doc/library/datetime.rst
+++ b/Doc/library/datetime.rst
@@ -1577,11 +1577,12 @@
 :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])

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list