This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xtreak
Recipients Mike Gleen, brett.cannon, docs@python, matrixise, xtreak
Date 2018-10-06.06:09:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1538806165.27.0.545547206417.issue34903@psf.upfronthosting.co.za>
In-reply-to
Content
In addition to %d there are also other items that support single digit though zero padding is mentioned with strptime as below in the context of strftime : 

>>> import datetime
>>> datetime.datetime.strptime("1/1/2018 1:1:1", "%d/%m/%Y %I:%M:%S")
datetime.datetime(2018, 1, 1, 1, 1, 1)


>>> datetime.datetime.strftime(datetime.datetime(year=2018, month=1, day=1, hour=1, second=1, minute=1), "%d/%m/%Y %I:%M:%S")
'01/01/2018 01:01:01'

I couldn't find exact set of words that can be used to denote that zero padding is optional in strptime and it's returned as zero padded in strftime but if we are changing %d then I propose changing other items too with similar wording.

Thanks
History
Date User Action Args
2018-10-06 06:09:25xtreaksetrecipients: + xtreak, brett.cannon, docs@python, matrixise, Mike Gleen
2018-10-06 06:09:25xtreaksetmessageid: <1538806165.27.0.545547206417.issue34903@psf.upfronthosting.co.za>
2018-10-06 06:09:25xtreaklinkissue34903 messages
2018-10-06 06:09:25xtreakcreate