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

Skip to content

Commit 19db33f

Browse files
committed
merge 3.4 (#16667)
2 parents 425aaa1 + 9b29acd commit 19db33f

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

Doc/library/datetime.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1692,11 +1692,11 @@ only EST (fixed offset -5 hours), or only EDT (fixed offset -4 hours)).
16921692
.. seealso::
16931693

16941694
`pytz <http://pypi.python.org/pypi/pytz/>`_
1695-
The standard library has no :class:`tzinfo` instances except for UTC, but
1696-
there exists a third-party library which brings the *IANA timezone
1697-
database* (also known as the Olson database) to Python: *pytz*.
1695+
The standard library has :class:`timezone` class for handling arbitrary
1696+
fixed offsets from UTC and :attr:`timezone.utc` as UTC timezone instance.
16981697

1699-
*pytz* contains up-to-date information and its usage is recommended.
1698+
*pytz* library brings the *IANA timezone database* (also known as the
1699+
Olson database) to Python and its usage is recommended.
17001700

17011701
`IANA timezone database <http://www.iana.org/time-zones>`_
17021702
The Time Zone Database (often called tz or zoneinfo) contains code and
@@ -1733,6 +1733,8 @@ made to civil time.
17331733
*offset*, HH and MM are two digits of ``offset.hours`` and
17341734
``offset.minutes`` respectively.
17351735

1736+
.. versionadded:: 3.2
1737+
17361738
.. method:: timezone.utcoffset(dt)
17371739

17381740
Return the fixed value specified when the :class:`timezone` instance is

0 commit comments

Comments
 (0)