File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments