Message227804
| 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. |
|