Skip to content

gh-124549: Document that strptime() uses the last directive when a time unit is over-specified - #125009

Merged
Mariatta merged 3 commits into
python:mainfrom
Mariatta:123449-docs-about-dtformat
Oct 20, 2026
Merged

Mariatta merged 3 commits into
python:mainfrom
Mariatta:123449-docs-about-dtformat

Conversation

@Mariatta

@Mariatta Mariatta commented Oct 5, 2024 •

Copy link
Copy Markdown
Member

@bedevere-app bedevere-app Bot added docs Documentation in the Doc dir skip news awaiting core review labels Oct 5, 2024
@Mariatta Mariatta changed the title gh-123549: Add a note that when over-specifying datetime format, only the last directive gets used. GH-124549: Add a note that when over-specifying datetime format, only the last directive gets used. Oct 5, 2024
@Mariatta Mariatta added 3.12 only security fixes 3.13 only security fixes labels Oct 5, 2024
@alliesw

This comment was marked as off-topic.

Comment thread Doc/library/datetime.rst Outdated
@python python deleted a comment from wiglo232-ops Aug 25, 2025
@python python deleted a comment from wiglo232-ops Aug 25, 2025
@StanFromIreland StanFromIreland removed 3.12 only security fixes 3.13 only security fixes labels Aug 29, 2025
@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Apr 18, 2026
@Mariatta
Mariatta force-pushed the 123449-docs-about-dtformat branch from 4988071 to f8937f1 Compare October 19, 2026 19:02
@read-the-docs-community

read-the-docs-community Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Comment thread Doc/library/datetime.rst Outdated
@Mariatta Mariatta changed the title GH-124549: Add a note that when over-specifying datetime format, only the last directive gets used. gh-124549: Document that strptime uses the last directive when a time unit is over-specified Oct 19, 2026
Co-authored-by: Stan Ulbrych <stan@python.org>
@StanFromIreland StanFromIreland changed the title gh-124549: Document that strptime uses the last directive when a time unit is over-specified gh-124549: Document that strptime() uses the last directive when a time unit is over-specified Oct 20, 2026
@StanFromIreland

Copy link
Copy Markdown
Member

This seems fine to me, @pganssle what do you think about #132524 ?

@Mariatta Mariatta added 3.14 bugs and security fixes 3.15 bugs and security fixes labels Oct 20, 2026
@Mariatta
Mariatta merged commit fd6ed15 into python:main Oct 20, 2026
34 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Oct 20, 2026
@StanFromIreland

Copy link
Copy Markdown
Member

@Mariatta did you mean to add the other labels for backports? I think backporting is good here.

@Mariatta Mariatta added needs backport to 3.14 bugs and security fixes needs backport to 3.15 bugs and security fixes labels Oct 20, 2026
@miss-islington-app

Copy link
Copy Markdown

Thanks @Mariatta for the PR 🌮🎉.. I'm working now to backport this PR to: 3.15.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Thanks @Mariatta for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

@bedevere-app

bedevere-app Bot commented Oct 20, 2026

Copy link
Copy Markdown

GH-159950 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Oct 20, 2026
@bedevere-app

bedevere-app Bot commented Oct 20, 2026

Copy link
Copy Markdown

GH-159951 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Oct 20, 2026
Mariatta added a commit that referenced this pull request Oct 20, 2026
…when a time unit is over-specified (GH-125009) (#159950)

gh-124549: Document that `strptime()` uses the last directive when a time unit is over-specified (GH-125009)

* Add a note that when over-specifying datetime format, only the last directive gets used.

* adjust and reorganize the notes location, fast forward to latest.

* Update Doc/library/datetime.rst



---------
(cherry picked from commit fd6ed15)

Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <stan@python.org>
Mariatta added a commit that referenced this pull request Oct 20, 2026
…when a time unit is over-specified (GH-125009) (#159951)

gh-124549: Document that `strptime()` uses the last directive when a time unit is over-specified (GH-125009)

* Add a note that when over-specifying datetime format, only the last directive gets used.

* adjust and reorganize the notes location, fast forward to latest.

* Update Doc/library/datetime.rst



---------
(cherry picked from commit fd6ed15)

Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <stan@python.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.14 bugs and security fixes 3.15 bugs and security fixes docs Documentation in the Doc dir skip news stale Stale PR or inactive for long period of time.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants