mirror of
https://github.com/python/cpython.git
synced 2025-10-21 22:22:48 +00:00
Mention that timezone is a subclass of tzinfo.
This commit is contained in:
parent
4e86d5b88d
commit
6d3c9a6893
1 changed files with 6 additions and 5 deletions
|
@ -1577,11 +1577,12 @@ only EST (fixed offset -5 hours), or only EDT (fixed offset -4 hours)).
|
||||||
:class:`timezone` Objects
|
:class:`timezone` Objects
|
||||||
--------------------------
|
--------------------------
|
||||||
|
|
||||||
A :class:`timezone` object represents a timezone that is defined by a
|
The :class:`timezone` class is a subclass of :class:`tzinfo`, each
|
||||||
fixed offset from UTC. Note that objects of this class cannot be used
|
instance of which represents a timezone defined by a fixed offset from
|
||||||
to represent timezone information in the locations where different
|
UTC. Note that objects of this class cannot be used to represent
|
||||||
offsets are used in different days of the year or where historical
|
timezone information in the locations where different offsets are used
|
||||||
changes have been made to civil time.
|
in different days of the year or where historical changes have been
|
||||||
|
made to civil time.
|
||||||
|
|
||||||
|
|
||||||
.. class:: timezone(offset[, name])
|
.. class:: timezone(offset[, name])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue