Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 35.2k
Update str*time to C11 format codes #140715
Copy link
Copy link
Open
0 / 10 of 1 issue completedLabels
docsDocumentation in the Doc dirDocumentation in the Doc dirstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytestsTests in the Lib/test dirTests in the Lib/test dirtype-featureA feature request or enhancementA feature request or enhancement
Description
Metadata
Metadata
Assignees
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dirstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytestsTests in the Lib/test dirTests in the Lib/test dirtype-featureA feature request or enhancementA feature request or enhancement
Projects
StatusShow more project fields
No status
StatusShow more project fields
Todo
Feature or enhancement
There are several things to do, these are already supported by
strftimebut some (support for a few was added recently but not documented) are not supported bystrptime(e.g.%tis not supported).%f, and quite a few codes are missing.strftimetests, they were written when the format codes were not expected.strptime, e.g.%n.strptimecollapses whitespace,%tan%nI will be working on this and most likely extending this list.
Linked PRs
datetime.*.str*timeformat code tables #140716%Dformat code support tostrptime()#144819