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
5fc850b4
Commit
5fc850b4
authored
Jan 10, 2011
by
Alexander Belopolsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved footnote for the %Y directive slightly.
parent
085556ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Doc/library/datetime.rst
Doc/library/datetime.rst
+5
-5
No files found.
Doc/library/datetime.rst
View file @
5fc850b4
...
...
@@ -1770,11 +1770,11 @@ Notes:
(5)
For technical reasons, :meth:`strftime` method does not support
dates
with year <
1000: ``t.strftime(format)`` will raise a
:exc:`ValueError`
even if ``format`` does not contain ``%Y``
directive. The :meth:`strptime` method can parse years in the full
[1, 9999] range, but years < 1000 must be zero-filled to 4-digit
width.
dates
before year
1000: ``t.strftime(format)`` will raise a
:exc:`ValueError`
when ``t.year < 1000`` even if ``format`` does
not contain ``%Y`` directive. The :meth:`strptime` method can
parse years in the full [1, 9999] range, but years < 1000 must be
zero-filled to 4-digit
width.
.. versionchanged:: 3.2
In previous versions, :meth:`strftime` method was restricted to
...
...
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