diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-06-18 19:21:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-18 19:21:27 (GMT) |
commit | 35aa0b0ced91cfb48d9dcf80a2ca8683e61f9b3e (patch) | |
tree | 4d3c74ed21ac0ab2d240584d67049e2490a20636 /Python/errors.c | |
parent | a7072ff56e216683f949b353255cce099f5cdb24 (diff) | |
download | cpython-35aa0b0ced91cfb48d9dcf80a2ca8683e61f9b3e.zip cpython-35aa0b0ced91cfb48d9dcf80a2ca8683e61f9b3e.tar.gz cpython-35aa0b0ced91cfb48d9dcf80a2ca8683e61f9b3e.tar.bz2 |
bpo-34903: Document that some strptime formats only require 1 digit (GH-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 6b9c204ee77a0de87d6f51a3d4547a18604cef9e)
Co-authored-by: Mike Gleen <mike.gleen@gmail.com>
Diffstat (limited to 'Python/errors.c')
0 files changed, 0 insertions, 0 deletions