How to find out if february has 29 or 28 days ?
jwbaxter at spamcop.net
Thu Aug 1 05:57:04 CEST 2002
In article <ai6fls$8kl$1 at wanadoo.fr>,
Eric Brunel <eric.brunel at pragmadev.com> wrote:
> A year is a leap year if it can be divided by 4, except if it can be
> divided by 100, where it's a leap year only if it can be divided by 400. It
> sounds awful to compute, but in Python, it's actually quite simple:
With ongoing discussion of a potential y4k exception exception exception
(not leap year) to adjust just a bit more finely. For most purposes, we
have time to deal with that one.
More information about the Python-list