-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
WIP: bpo-1100942: Add datetime.time.strptime and datetime.date.strptime #5578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
ad5ffab
50606eb
ab5030f
07fb326
010ac8b
5b58fc1
8353a65
cff74a9
f92a799
4c4a7cc
b006172
ff7487f
a048f0e
9ac0af4
a952bb7
412aea2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -448,7 +448,8 @@ Other constructors, all class methods: | |
| Return a :class:`date` corresponding to *date_string*, parsed according to | ||
| *format*. :exc:`ValueError` is raised if the date string and format can't be | ||
| parsed by :meth:`time.strptime`, or if time components are present in the | ||
| format string. | ||
| format string. For a complete list of formatting directives, see | ||
| :ref:`strftime-strptime-behavior`. | ||
|
|
||
|
||
| .. versionadded:: 3.8 | ||
|
|
||
|
|
@@ -1441,8 +1442,9 @@ Other constructors, all class methods: | |
|
|
||
| Return a :class:`time` corresponding to *date_string, parsed according to | ||
matrixise marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| *format*. :exc:`ValueError` is raised if the date string and format can't be | ||
| parsed by :meth:`time.strptime`, if it returns a value which isn't a time tuple, | ||
| or if the date part is nonzero. | ||
| parsed by :meth:`time.strptime`, if it returns a value which isn't a time | ||
| tuple, or if the date part is nonzero. For a complete list of formatting | ||
|
||
| directives, see :ref:`strftime-strptime-behavior`. | ||
|
|
||
| .. versionadded:: 3.8 | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps clarify “time.strptime” does not refer to the strptime function in the time module. The reader may not see the meth RST code, HTML links, etc.