-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from pganssle/documentation
Update documentation to reflect backport status
- Loading branch information
Showing
6 changed files
with
83 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
sphinx>=3.0.0 | ||
python-docs-theme |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,25 @@ | ||
:mod:`zoneinfo` --- IANA time zone support | ||
========================================== | ||
:mod:`backports.zoneinfo` --- IANA time zone support | ||
==================================================== | ||
|
||
.. module:: zoneinfo | ||
.. module:: backports.zoneinfo | ||
:synopsis: IANA time zone support | ||
|
||
.. versionadded:: 3.9 | ||
|
||
.. moduleauthor:: Paul Ganssle <[email protected]> | ||
.. sectionauthor:: Paul Ganssle <[email protected]> | ||
|
||
-------------- | ||
|
||
The :mod:`zoneinfo` module provides a concrete time zone implementation to | ||
support the IANA time zone database as originally specified in :pep:`615`. By | ||
default, :mod:`zoneinfo` uses the system's time zone data if available; if no | ||
system time zone data is available, the library will fall back to using the | ||
first-party `tzdata`_ package available on PyPI. | ||
The :mod:`~backports.zoneinfo` module provides a concrete time zone | ||
implementation to support the IANA time zone database as originally specified | ||
in :pep:`615`. By default, :mod:`~backports.zoneinfo` uses the system's time | ||
zone data if available; if no system time zone data is available, the library | ||
will fall back to using the first-party `tzdata`_ package available on PyPI. | ||
|
||
.. seealso:: | ||
|
||
Module: :mod:`zoneinfo` | ||
The standard library module ``zoneinfo``, of which this is a backport. | ||
|
||
Module: :mod:`datetime` | ||
Provides the :class:`~datetime.time` and :class:`~datetime.datetime` | ||
types with which the :class:`ZoneInfo` class is designed to be used. | ||
|
@@ -36,7 +37,7 @@ abstract base class, and is intended to be attached to ``tzinfo``, either via | |
the constructor, the :meth:`datetime.replace <datetime.datetime.replace>` | ||
method or :meth:`datetime.astimezone <datetime.datetime.astimezone>`:: | ||
|
||
>>> from zoneinfo import ZoneInfo | ||
>>> from backports.zoneinfo import ZoneInfo | ||
>>> from datetime import datetime, timedelta | ||
|
||
>>> dt = datetime(2020, 10, 31, 12, tzinfo=ZoneInfo("America/Los_Angeles")) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters