Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d11d0d6

Browse files
committed
Issue #14448: mention pytz; patch by Andrew Svetlov
1 parent 3e29d93 commit d11d0d6

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

Doc/library/datetime.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1518,7 +1518,6 @@ Example :class:`tzinfo` classes:
15181518

15191519
.. literalinclude:: ../includes/tzinfo-examples.py
15201520

1521-
15221521
Note that there are unavoidable subtleties twice per year in a :class:`tzinfo`
15231522
subclass accounting for both standard and daylight time, at the DST transition
15241523
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
15581557
or any other fixed-offset :class:`tzinfo` subclass (such as a class representing
15591558
only EST (fixed offset -5 hours), or only EDT (fixed offset -4 hours)).
15601559

1560+
.. seealso::
1561+
1562+
`pytz <http://pypi.python.org/pypi/pytz/>`_
1563+
The Standard Library has no :class:`tzinfo` instances except for UTC, but
1564+
it exists a third-party library which brings Olson timezone database to
1565+
Python: `pytz`.
1566+
1567+
`pytz` contains up-to-date information and its usage is recommended.
1568+
15611569

15621570
.. _datetime-timezone:
15631571

0 commit comments

Comments
 (0)