]> granicus.if.org Git - python/commitdiff
some timezone doc improvements (closes #16667)
authorBenjamin Peterson <benjamin@python.org>
Sun, 22 Jun 2014 23:26:39 +0000 (16:26 -0700)
committerBenjamin Peterson <benjamin@python.org>
Sun, 22 Jun 2014 23:26:39 +0000 (16:26 -0700)
From the combined efforts of Berber Peksage, Andrew Svetlov, and Yayoi Ukai.

Doc/library/datetime.rst

index e4f1eb23017759c7079fefa06245f58691019b36..e1b9e108f6c60afe5d70b7f5bef5901cb36b87e5 100644 (file)
@@ -1687,11 +1687,11 @@ only EST (fixed offset -5 hours), or only EDT (fixed offset -4 hours)).
 .. seealso::
 
    `pytz <http://pypi.python.org/pypi/pytz/>`_
-      The standard library has no :class:`tzinfo` instances except for UTC, but
-      there exists a third-party library which brings the *IANA timezone
-      database* (also known as the Olson database) to Python: *pytz*.
+      The standard library has :class:`timezone` class for handling arbitrary
+      fixed offsets from UTC and :attr:`timezone.utc` as UTC timezone instance.
 
-      *pytz* contains up-to-date information and its usage is recommended.
+      *pytz* library brings the *IANA timezone database* (also known as the
+      Olson database) to Python and its usage is recommended.
 
    `IANA timezone database <http://www.iana.org/time-zones>`_
       The Time Zone Database (often called tz or zoneinfo) contains code and
@@ -1728,6 +1728,8 @@ made to civil time.
   *offset*, HH and MM are two digits of ``offset.hours`` and
   ``offset.minutes`` respectively.
 
+  .. versionadded:: 3.2
+
 .. method:: timezone.utcoffset(dt)
 
   Return the fixed value specified when the :class:`timezone` instance is