Skip to content

Commit 8cef526

Browse files
bpo-45515: Add zoneinfo to the datetime documentation (GH-29038) (GH-29065)
We should have done this way back when 3.9 was released, but it fell off the radar. Co-authored-by: Paul Ganssle <git@m.ganssle.io> (cherry picked from commit 8e40ca1)
1 parent 97ce855 commit 8cef526

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

Doc/library/datetime.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ on efficient attribute extraction for output formatting and manipulation.
2727
Module :mod:`time`
2828
Time access and conversions.
2929

30+
Module :mod:`zoneinfo`
31+
Concrete time zones representing the IANA time zone database.
32+
3033
Package `dateutil <https://dateutil.readthedocs.io/en/stable/>`_
3134
Third-party library with expanded time zone and parsing support.
3235

@@ -2174,14 +2177,13 @@ only EST (fixed offset -5 hours), or only EDT (fixed offset -4 hours)).
21742177

21752178
.. seealso::
21762179

2177-
`dateutil.tz <https://dateutil.readthedocs.io/en/stable/tz.html>`_
2180+
:mod:`zoneinfo`
21782181
The :mod:`datetime` module has a basic :class:`timezone` class (for
21792182
handling arbitrary fixed offsets from UTC) and its :attr:`timezone.utc`
21802183
attribute (a UTC timezone instance).
21812184

2182-
*dateutil.tz* library brings the *IANA timezone database*
2183-
(also known as the Olson database) to Python, and its usage is
2184-
recommended.
2185+
``zoneinfo`` brings the *IANA timezone database* (also known as the Olson
2186+
database) to Python, and its usage is recommended.
21852187

21862188
`IANA timezone database <https://www.iana.org/time-zones>`_
21872189
The Time Zone Database (often called tz, tzdata or zoneinfo) contains code
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Add references to :mod:`zoneinfo` in the :mod:`datetime` documentation,
2+
mostly replacing outdated references to ``dateutil.tz``. Change by Paul
3+
Ganssle.

0 commit comments

Comments
 (0)