[docs] datetime format bug

Aashiq aashiq.d at gmail.com
Fri Mar 2 17:57:41 EST 2018


Ignore that, I screwed up my date formatting.. should be %M.

On Fri, Mar 2, 2018 at 4:15 PM Aashiq <aashiq.d at gmail.com> wrote:

> 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/385dd82d/attachment.html>


More information about the docs mailing list