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 anadelonbrin
Recipients
Date 2004-10-19.07:31:44
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=552329

Patch works for that case, yes.  However...

[from python-dev]
> the test case I was using that triggered
> the need for that is 1906-12-31 
> which is a Monday but changes what week
> it is based on whether you use U or W. 
> which makes no sense since both U and W
> should consider it the same week. 
> Had the same result for 1917-12-31.

Something's still not right here (this is with the patch):

>>> time.strptime("1917 51 1", "%Y %U %w")
(1917, 12, 17, 0, 0, 0, 0, 351, -1)
>>> time.strptime("1917 52 1", "%Y %U %w")
(1917, 12, 31, 0, 0, 0, 0, 365, -1)

1917 both started and ended on a Monday, so there are 53 U
weeks, right?  (where the last 'week' is only one day).  So
31/12/1917 should be U=53, W=52
History
Date User Action Args
2007-08-23 14:26:37adminlinkissue1045381 messages
2007-08-23 14:26:37admincreate