Author belopolsky
Recipients AaronR, Alex.Willmer, BreamoreBoy, Erik Cederstrand, Erik.Cederstrand, aganders3, belopolsky, r.david.murray, tim.peters
Date 2014-09-29.15:35:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1412004936.79.0.907857486431.issue12006@psf.upfronthosting.co.za>
In-reply-to
Content
For future reference, here is the example showing %Y %V ambiguity:

>>> date(2013,12,31).strftime('%Y %V %u')
'2013 01 2'
>>> date(2013,1,1).strftime('%Y %V %u')
'2013 01 2'

which is resolved by using %G

>>> date(2013,12,31).strftime('%G %V %u')
'2014 01 2'
>>> date(2013,1,1).strftime('%G %V %u')
'2013 01 2'

In other words, '2013 01 2' cannot be unambiguously parsed using '%Y %V %u' format.
History
Date User Action Args
2014-09-29 15:35:36belopolskysetrecipients: + belopolsky, tim.peters, r.david.murray, BreamoreBoy, Erik.Cederstrand, AaronR, aganders3, Erik Cederstrand, Alex.Willmer
2014-09-29 15:35:36belopolskysetmessageid: <1412004936.79.0.907857486431.issue12006@psf.upfronthosting.co.za>
2014-09-29 15:35:36belopolskylinkissue12006 messages
2014-09-29 15:35:36belopolskycreate