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 serge-bon
Recipients matheus.v.portela, mrabarnett, musically_ut, serge-bon, winton, xtreak
Date 2018-12-24.02:46:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1545619566.96.0.0770528567349.issue30802@roundup.psfhosted.org>
In-reply-to
Content
Not following msg332388 would lead to this:


# Sunday of the week 53

>>> datetime.strptime ('2017 Sun 53', '%Y %a %U')
datetime.datetime(2017, 12, 31, 0, 0)


# First day of the week 53
# oops! assumed Monday is the first day of the week but 2017 ends on Sunday

>>> datetime.strptime ('2017 53',     '%Y %U')
datetime.datetime(2018, 1, 1, 0, 0)

>>> datetime.strptime ('2017 Mon 53', '%Y %a %U')
datetime.datetime(2018, 1, 1, 0, 0)
History
Date User Action Args
2018-12-24 02:46:08serge-bonsetrecipients: + serge-bon, mrabarnett, musically_ut, matheus.v.portela, winton, xtreak
2018-12-24 02:46:06serge-bonsetmessageid: <1545619566.96.0.0770528567349.issue30802@roundup.psfhosted.org>
2018-12-24 02:46:06serge-bonlinkissue30802 messages
2018-12-24 02:46:06serge-boncreate