Re: Fwd: Bug id #12378 2000 is not a leapyear!

From: Date: Thu, 26 Jul 2001 19:26:40 +0000
Subject: Re: Fwd: Bug id #12378 2000 is not a leapyear!
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-61098@lists.php.net to get a copy of this message
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" <andy@php.net> 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 <webmaster@telescopium.dk> > > > 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: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.dev (#61098) next »