Date_Calc doesn't conform to coding standards
| From: | culley harrelson | Date: | Fri, 06 Jun 2003 06:34:01 +0000 |
| Subject: | Date_Calc doesn't conform to coding standards | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-5841@lists.php.net to get a copy of this message | ||
function isPastDate($day,$month,$year)
{
$this_year = Date_Calc::dateNow("%Y");
$this_month = Date_Calc::dateNow("%m");
$this_day = Date_Calc::dateNow("%d");
if($year < $this_year)
return true;
elseif($year == $this_year)
if($month < $this_month)
return true;
elseif($month == $this_month)
if($day < $this_day)
return true;
return false;
} // end func isPastDate