Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
6d3c9a68
Commit
6d3c9a68
authored
May 04, 2011
by
Alexander Belopolsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mention that timezone is a subclass of tzinfo.
parent
4e86d5b8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
Doc/library/datetime.rst
Doc/library/datetime.rst
+6
-5
No files found.
Doc/library/datetime.rst
View file @
6d3c9a68
...
@@ -1577,11 +1577,12 @@ only EST (fixed offset -5 hours), or only EDT (fixed offset -4 hours)).
...
@@ -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])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment