How to find out if february has 29 or 28 days ?
John Baxter
jwbaxter at spamcop.net
Wed Jul 31 23:57:04 EDT 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.
--John
More information about the Python-list
mailing list