in reply to RE: Re: Calculating a persons age based on their birthday.
in thread Calculating a persons age based on their birthday.

Sorry - It should be
if ((($year % 4 == 0) && ($year % 100 != 0)) || ($year % 400) == 0) {$ +nod=$nod-366} else {$nod=$nod-365}; #check for the leap year.
365 and 366 swiched places....

Replies are listed 'Best First'.
RE: RE: RE: Re: Calculating a persons age based on their birthday.
by Maqs (Deacon) on May 03, 2000 at 15:15 UTC
    don't think so. The check might be simple. if $year % 4 gives any result except '0'
    then this is not a leap year. there is nothing else to check out, IMHO.