diff options
author | Sandro Tosi <sandro.tosi@gmail.com> | 2012-04-24 17:46:06 (GMT) |
---|---|---|
committer | Sandro Tosi <sandro.tosi@gmail.com> | 2012-04-24 17:46:06 (GMT) |
commit | d11d0d6343b16f526c57ffd148a89548e0c6d681 (patch) | |
tree | c2c11d0b061b2beb819f5774777665630a0c12c3 /Doc/library/datetime.rst | |
parent | 3e29d93007f7ac8b96ddf0b4f925f9a9dfa06b30 (diff) | |
download | cpython-d11d0d6343b16f526c57ffd148a89548e0c6d681.zip cpython-d11d0d6343b16f526c57ffd148a89548e0c6d681.tar.gz cpython-d11d0d6343b16f526c57ffd148a89548e0c6d681.tar.bz2 |
Issue #14448: mention pytz; patch by Andrew Svetlov
Diffstat (limited to 'Doc/library/datetime.rst')
-rw-r--r-- | Doc/library/datetime.rst | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst index 1f4cfba..b80c6a8 100644 --- a/Doc/library/datetime.rst +++ b/Doc/library/datetime.rst @@ -1518,7 +1518,6 @@ Example :class:`tzinfo` classes: .. 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 @@ Applications that can't bear such ambiguities should avoid using hybrid 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: |