cvs: php4 /pear/Date Calc.php

From: Date: Thu, 27 Dec 2001 12:37:36 +0000
Subject: cvs: php4 /pear/Date Calc.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-1711@lists.php.net to get a copy of this message
cox Thu Dec 27 07:37:36 2001 EDT Modified files: /php4/pear/Date Calc.php Log: Hope to be the right fix for bug #13975 Index: php4/pear/Date/Calc.php diff -u php4/pear/Date/Calc.php:1.16 php4/pear/Date/Calc.php:1.17 --- php4/pear/Date/Calc.php:1.16 Mon Aug 20 21:48:23 2001 +++ php4/pear/Date/Calc.php Thu Dec 27 07:37:36 2001 @@ -210,9 +210,9 @@ /** * Returns week of the year, first Sunday is first day of first week * - * @param string year in format CCYY - * @param string month in format MM * @param string day in format DD + * @param string month in format MM + * @param string year in format CCYY * * @access public * @@ -233,7 +233,7 @@ - floor($week_year / 100) + floor(($week_year - 300) / 400); $week_number = - floor((Date_Calc::julianDate($day,$month,$year) + floor(($week_day + 4) % 7)) / 7); + ceil((Date_Calc::julianDate($day,$month,$year) + floor(($week_day + 4) % 7)) / 7); return $week_number;

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