Update `str*time` to C11 format codes
Open
@StanFromIreland is already working on this.
Since Oct 28, 2025.
docs
stdlib
tests
type-feature
- Dominant language
- Python
- Stars
- 77.2k
- Forks
- 36k
- PR merge metrics
- PR metrics pending
Description
Feature or enhancement
There are several things to do, these are already supported by strftime but some (support for a few was added recently but not documented) are not supported by strptime (e.g. %t is not supported).
- Update docs, currently the table is a bit messy with non-standard format codes listed, i.e.
%f, and quite a few codes are missing. - Refactor
strftimetests, they were written when the format codes were not expected. - Complete
strptime, e.g.%n. - Document that
strptimecollapses whitespace,%tan%n - Consider: Add an entry to What's New
I will be working on this and most likely extending this list.
Linked PRs
- gh-140716
- gh-140647
- gh-123980
- gh-144819
- gh-144896
- gh-145388
- gh-145389
- gh-145955
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.