cvs: php4 /pear/Date Calc.php

From: Date: Tue, 11 Jun 2002 15:14:52 +0000
Subject: cvs: php4 /pear/Date Calc.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-4557@lists.php.net to get a copy of this message
pajoye Tue Jun 11 11:14:52 2002 EDT Modified files: /php4/pear/Date Calc.php Log: Add comment to ::isLeapYear() Remove useless comment added during the last commit Index: php4/pear/Date/Calc.php diff -u php4/pear/Date/Calc.php:1.21 php4/pear/Date/Calc.php:1.22 --- php4/pear/Date/Calc.php:1.21 Tue Jun 11 10:53:27 2002 +++ php4/pear/Date/Calc.php Tue Jun 11 11:14:51 2002 @@ -70,6 +70,16 @@ return true; } // end func isValidDate + /** + * Returns true for a leap year, else false + * + * @param string year in format CCYY + * + * @access public + * + * @return boolean true/false + */ + function isLeapYear($year="") { @@ -1180,7 +1190,6 @@ floor(( 1461 * $year) / 4 ) + floor(( 153 * $month + 2) / 5 ) + $day + 1721119); - // 17 November 185 } // end func dateToDays /**

« previous php.pear.cvs (#4557) next »