Is correct ??
| From: | Miguel Loureiro | Date: | Wed, 31 Jan 2001 17:35:51 +0000 |
| Subject: | Is correct ?? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-37506@lists.php.net to get a copy of this message | ||
Hi,
Anybody knows if this sourcecode is correct to calculate the numbers of days in certain date ?
$m - month; $d - day, $y - year
if($m<=2){
$y--;
$m+=13;
}
else
$m++;
$nd = (1461 * $y / 4) + (153*$m/5) + $d;
Because I use this code in a function and sometimes it your and others dont ....
Best Regards
Miguel Loureiro < m.loureiro@distrim2.pt >