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
5320782b
Commit
5320782b
authored
Jan 10, 2011
by
Alexander Belopolsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added entries about removal of year 1900 limit.
parent
cd8c7da8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
Doc/whatsnew/3.2.rst
Doc/whatsnew/3.2.rst
+23
-0
No files found.
Doc/whatsnew/3.2.rst
View file @
5320782b
...
...
@@ -839,6 +839,29 @@ datetime
(Contributed by Alexander Belopolsky in :issue:`1289118`, :issue:`5094`,
:issue:`6641`, and :issue:`2706`.)
.. XXX
* The ``strftime()`` method of :class:`~datetime.date` and
:class:`~datetime.datetime` are no longer restricted to years >=
1900. The new supported year range is [1000, 9999]. (Contributed
by Alexander Belopolsky and Victor Stinner in :issue:`1777412`)
.. XXX Add a section on time module.
* The :func:`time.asctime` and :func:`time.ctime` functions no
longer call C library asctime. (Contributed by Alexander
Belopolsky in :issue:`8013`.)
* Changed the rules for using 2-digit years in time tuples. The
:func:`time.asctime`, :func:`time.ctime` and
:func:`time.strftime` functions will now format any year when
``time.accept2dyear`` is false and will accept years >= 1000
otherwise. :func:`time.mktime` and :func:`time.strftime` now
accepts full range supported by the OS. Conversion of 2-digit
years to 4-digit is deprecated. (Contributed by Alexander
Belopolsky and Victor Stinner in :issue:`10827`.)
abc
---
...
...
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