[issue3336] datetime weekday() function

Tim Peters report at bugs.python.org
Thu Jul 10 22:32:55 CEST 2008


Tim Peters <tim.peters at gmail.com> 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 years.  Look it up (anywhere ;-)).

----------
nosy: +tim_one

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3336>
_______________________________________


More information about the Python-bugs-list mailing list