note 56684 deleted from function.checkdate by cece

From: Date: Tue, 15 Nov 2005 14:45:26 +0000
Subject: note 56684 deleted from function.checkdate by cece
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-98604@lists.php.net to get a copy of this message
Note Submitter: Thierry ---- Thank for this function but there is a little error in the test of $day: if ((abs($year-date('Y'))>$yearepsilon) || // year outside given range ($month<1) || ($month>12) || ($day<1) || (($month==2) && ($day>28+(!($year%4))-(!($year%100))+(!($year%400)))) || ($day>30+(($month>7)^($month&1)))) return false; // date out of range

« previous php.notes (#98604) next »