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
4bfe03a4
Commit
4bfe03a4
authored
Nov 01, 2011
by
Sandro Tosi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correct signature for tzinfo.dst() in examples; thanks to Daniil Shved from docs@
parent
316f573d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Doc/library/datetime.rst
Doc/library/datetime.rst
+2
-2
No files found.
Doc/library/datetime.rst
View file @
4bfe03a4
...
...
@@ -1422,13 +1422,13 @@ methods. Exactly which methods are needed depends on the uses made of aware
Most implementations of :meth:`dst` will probably look like one of these two::
def dst(self):
def dst(self
, dt
):
# a fixed-offset class: doesn't account for DST
return timedelta(0)
or ::
def dst(self):
def dst(self
, dt
):
# Code to set dston and dstoff to the time zone's DST
# transition times based on the input dt.year, and expressed
# in standard local time. Then
...
...
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