beif ($year % 4) {$nod=$nod-365} else {$nod=$nod-366}; #check for the le +ap year.
To handle Y2K (and others) correct... /t0masif ((($year % 4 == 0) && ($year % 100 != 0)) || ($year % 400) == 0) {$ +nod=$nod-365} else {$nod=$nod-366}; #check for the leap year.
In reply to RE: Re: Calculating a persons age based on their birthday.
by t0mas
in thread Calculating a persons age based on their birthday.
by artful
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |