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 Erik.Cederstrand
Recipients Erik.Cederstrand, aganders3, belopolsky, r.david.murray
Date 2011-05-27.07:28:24
SpamBayes Score 0.00025692186
Marked as misclassified No
Message-id <1306481305.75.0.776825433014.issue12006@psf.upfronthosting.co.za>
In-reply-to
Content
I respectfully disagree. I take strptime('2002 01 1', '%Y %V %u') as mening "first day of first week in the year 2002"

There is only one date that corresponds to the first day of the first week of 2002, i.e. Dec. 31, 2001. If you specify the first day of the first week of 2001 instead, then that's another date (Jan. 1, 2001). The last and the first week in a year may span dates belonging to two years.  That's just the way it is.

Are you suggesting strptime('2002 01 1', '%Y %V %u') to mean "first day of first week of 2002, except if that would change the year, in which case it means ???"

If you want to strftime(strptime(date, fmt), fmt) and arrive at the original date then yes, you need %G (but only in strftime).
History
Date User Action Args
2011-05-27 07:28:25Erik.Cederstrandsetrecipients: + Erik.Cederstrand, belopolsky, r.david.murray, aganders3
2011-05-27 07:28:25Erik.Cederstrandsetmessageid: <1306481305.75.0.776825433014.issue12006@psf.upfronthosting.co.za>
2011-05-27 07:28:25Erik.Cederstrandlinkissue12006 messages
2011-05-27 07:28:24Erik.Cederstrandcreate