Read ext/calendar/gregor.c and you will see that:
$leap = $year % 4 == 0;
// centennials are only leap years if they are multiples of 400
if ($year % 100 == 0 && $year % 400 != 0)
$leap = false;
(that boils down to somthing simpler)
2000 was definitely a leap year.
--Wez.
On 26/07/01, "Andy" <[EMAIL PROTECTED]> wrote:> Is this right???
>
> Also, look at bug #12378
> (http://php.net/bugs.php?id=12378)
>
> ---------- Forwarded Message ----------
> Subject: Bug id #12378 2000 is not a leapyear!
> Date: Thu, 26 Jul 2001 06:01:13 -0400
> From: Christian Hansen <[EMAIL PROTECTED]>
>
>
> Sorry i didn't write on the bugtracing system. I didn't provite a
> password the first time and is unable to apply my comment there.
>
> According to the gregorian calender every data where $year % 4 = 0 is a
> leapyear unless $year % 400 = 0. Therefore the year 2000 is not a leapyear
>
> Greetings from Christian, denmark
> -------------------------------------------------------
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]