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

Skip to content

Commit 17feca0

Browse files
committed
Issue #14448: merge with 3.2
2 parents f409583 + d11d0d6 commit 17feca0

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
@@ -1557,7 +1557,6 @@ Example :class:`tzinfo` classes:
15571557

15581558
.. literalinclude:: ../includes/tzinfo-examples.py
15591559

1560-
15611560
Note that there are unavoidable subtleties twice per year in a :class:`tzinfo`
15621561
subclass accounting for both standard and daylight time, at the DST transition
15631562
points. For concreteness, consider US Eastern (UTC -0500), where EDT begins the
@@ -1597,6 +1596,15 @@ Applications that can't bear such ambiguities should avoid using hybrid
15971596
or any other fixed-offset :class:`tzinfo` subclass (such as a class representing
15981597
only EST (fixed offset -5 hours), or only EDT (fixed offset -4 hours)).
15991598

1599+
.. seealso::
1600+
1601+
`pytz <http://pypi.python.org/pypi/pytz/>`_
1602+
The Standard Library has no :class:`tzinfo` instances except for UTC, but
1603+
it exists a third-party library which brings Olson timezone database to
1604+
Python: `pytz`.
1605+
1606+
`pytz` contains up-to-date information and its usage is recommended.
1607+
16001608

16011609
.. _datetime-timezone:
16021610

0 commit comments

Comments
 (0)