Skip to content

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

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

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

Conversation

@miss-islington
Copy link
Copy Markdown
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 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 ✅ .

@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
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 ✅ .

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