Closed
Description
Currently the docs for datetime.strptime
and datetime.strftime
don't include an example but have a link to the table with the format codes, where I end up having to reconstruct the right combination every time. At the end of each class docs there are some examples, but there are no links pointing to them, so they aren't easily discoverable. In addition, the .(from)isoformat
methods can often be used instead of strftime
/strptime
.
I therefore suggest the following changes:
- add an example before the table with the format codes, showing some of the most common codes;
- add links to
(date|time|datetime).isoformat
in the docs for(date|time|datetime).strptime
; - add links to
datetime.fromisoformat
in the docs fordatetime.strptime
(date
andtime
have a.fromisoformat
method, but no.strptime
method);
Linked PRs
Metadata
Metadata
Assignees
Labels
Projects
Status
Done