From: [EMAIL PROTECTED] Operating system: Windows 2000 PHP version: 4.0.4pl1 PHP Bug Type: Date/time related Bug description: date arithmetic gives wrong result <? $birthdate = mktime(0, 0, 0, 1, 1, 2001); // should give 82 days old - correct $CurDate = mktime(0,0,0,3,24,2001); printf("<BR>".date("z", $CurDate - $birthdate ) ." days old"); // should give 83 days old - correct $CurDate = mktime(0,0,0,3,25,2001); printf("<BR>".date("z", $CurDate - $birthdate ) ." days old"); // should give 84 days old - instead gives 83 $CurDate = mktime(0,0,0,3,26,2001); printf("<BR>".date("z", $CurDate - $birthdate ) ." days old"); // should give 85 days old - instead gives 84 $CurDate = mktime(0,0,0,3,27,2001); printf("<BR>".date("z", $CurDate - $birthdate ) ." days old"); ?> -- Edit Bug report at: http://bugs.php.net/?id=10180&edit=1 -- 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]