[docs] datetime format bug

Aashiq aashiq.d at gmail.com
Fri Mar 2 17:10:14 EST 2018


import datetime
d1 = datetime.datetime(2018,2,26,10,2)
d2 = datetime.datetime(2018,2,26,10,4)
ss = "{:%m} {:%m}".format(d1,d2)
print(ss)

Expected: 02 04
Actual: 02 02
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20180302/41dfff63/attachment.html>


More information about the docs mailing list