[issue3336] datetime weekday() function

2008-07-15 Thread Georg Brandl
Changes by Georg Brandl <[EMAIL PROTECTED]>: -- resolution: -> wont fix status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue3336] datetime weekday() function

2008-07-10 Thread Tim Peters
Tim Peters <[EMAIL PROTECTED]> added the comment: The error message is correct. In the Gregorian calendar, years divisible by 100 are not leap years, unless they're also divisible by 400. So 2000, 2400, 2800, ..., are leap years, but 2100, 2200, 2300, 2500, 2600, 2700, 2900, ... are not leap ye

[issue3336] datetime weekday() function

2008-07-10 Thread ryanboesch
New submission from ryanboesch <[EMAIL PROTECTED]>: Leap year ignored each century (2100, 2200, 2300, etc.) except 2000 for the weekday() function. This code reproduces the error: import datetime datetime.date(2100,2,29).weekday() Error message: ValueError: day is out of range for the month Al