Skip to content

[3.8] bpo-34903: Document that some strptime formats only require 1 digit (GH-14149) #14206

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

Merged
merged 1 commit into from
Jun 18, 2019

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jun 18, 2019

For datetime.datetime.strptime(), the leading zero for some two-digit formats is optional.

This adds a footnote to the strftime/strptime documentation to reflect this fact, and adds some tests to ensure that it is true.

bpo-34903
(cherry picked from commit 6b9c204)

Co-authored-by: Mike Gleen [email protected]

https://bugs.python.org/issue34903

…ythonGH-14149)

For datetime.datetime.strptime(), the leading zero for some two-digit formats is optional.

This adds a footnote to the strftime/strptime documentation to reflect this fact, and adds some tests to ensure that it is true.

bpo-34903
(cherry picked from commit 6b9c204)

Co-authored-by: Mike Gleen <[email protected]>
@miss-islington
Copy link
Contributor Author

@mikegleen and @pganssle: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit 35aa0b0 into python:3.8 Jun 18, 2019
@miss-islington miss-islington deleted the backport-6b9c204-3.8 branch June 18, 2019 19:21
@miss-islington
Copy link
Contributor Author

@mikegleen and @pganssle: Status check is done, and it's a success ✅ .

1 similar comment
@miss-islington
Copy link
Contributor Author

@mikegleen and @pganssle: Status check is done, and it's a success ✅ .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants