[Python-checkins] cpython (3.2): Issue #14448: mention pytz; patch by Andrew Svetlov
sandro.tosi
python-checkins at python.org
Tue Apr 24 19:48:10 CEST 2012
http://hg.python.org/cpython/rev/3aec41794584
changeset: 76533:3aec41794584
branch: 3.2
parent: 76528:d1ba0421d65f
user: Sandro Tosi <sandro.tosi at gmail.com>
date: Tue Apr 24 19:46:06 2012 +0200
summary:
Issue #14448: mention pytz; patch by Andrew Svetlov
files:
Doc/library/datetime.rst | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst
--- a/Doc/library/datetime.rst
+++ b/Doc/library/datetime.rst
@@ -1518,7 +1518,6 @@
.. literalinclude:: ../includes/tzinfo-examples.py
-
Note that there are unavoidable subtleties twice per year in a :class:`tzinfo`
subclass accounting for both standard and daylight time, at the DST transition
points. For concreteness, consider US Eastern (UTC -0500), where EDT begins the
@@ -1558,6 +1557,15 @@
or any other fixed-offset :class:`tzinfo` subclass (such as a class representing
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
+ it exists a third-party library which brings Olson timezone database to
+ Python: `pytz`.
+
+ `pytz` contains up-to-date information and its usage is recommended.
+
.. _datetime-timezone:
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list