Skip to content

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

Merged
miss-islington merged 1 commit into
python:3.7from
miss-islington:backport-6b9c204-3.7
Jun 18, 2019
Merged

[3.7] bpo-34903: Document that some strptime formats only require 1 digit (GH-14149)#14205
miss-islington merged 1 commit into
python:3.7from
miss-islington:backport-6b9c204-3.7

Conversation

@miss-islington

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

Copy link
Copy Markdown
Contributor

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 mike.gleen@gmail.com

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 <mike.gleen@gmail.com>
@miss-islington

Copy link
Copy Markdown
Contributor Author

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

1 similar comment
@miss-islington

Copy link
Copy Markdown
Contributor Author

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

@miss-islington
miss-islington merged commit 452b417 into python:3.7 Jun 18, 2019
@miss-islington
miss-islington deleted the backport-6b9c204-3.7 branch June 18, 2019 18:55
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