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

Skip to content

Commit 6d3c9a6

Browse files
committed
Mention that timezone is a subclass of tzinfo.
1 parent 4e86d5b commit 6d3c9a6

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

Doc/library/datetime.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1577,11 +1577,12 @@ only EST (fixed offset -5 hours), or only EDT (fixed offset -4 hours)).
15771577
:class:`timezone` Objects
15781578
--------------------------
15791579

1580-
A :class:`timezone` object represents a timezone that is defined by a
1581-
fixed offset from UTC. Note that objects of this class cannot be used
1582-
to represent timezone information in the locations where different
1583-
offsets are used in different days of the year or where historical
1584-
changes have been made to civil time.
1580+
The :class:`timezone` class is a subclass of :class:`tzinfo`, each
1581+
instance of which represents a timezone defined by a fixed offset from
1582+
UTC. Note that objects of this class cannot be used to represent
1583+
timezone information in the locations where different offsets are used
1584+
in different days of the year or where historical changes have been
1585+
made to civil time.
15851586

15861587

15871588
.. class:: timezone(offset[, name])

0 commit comments

Comments
 (0)