Bug #13975 Updated: Date_Calc::weekOfYear() function problem

From: Date: Thu, 27 Dec 2001 12:38:37 +0000
Subject: Bug #13975 Updated: Date_Calc::weekOfYear() function problem
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-3710@lists.php.net to get a copy of this message
ID: 13975 Updated by: cox Reported By: beagle@emaila.com Old Status: Open Status: Closed Bug Type: PEAR related Operating System: Linux RedHat 7.0 PHP Version: 4.0.6 New Comment: Fixed in CVS, thanks -- Tomas V.V.Cox Previous Comments: ------------------------------------------------------------------------ [2001-11-07 07:42:22] beagle@emaila.com <? require "Date/Calc.php"; echo Date_Calc::weekOfYear(4,1,1998) . ", "; echo Date_Calc::weekOfYear(4,1,2004); ?> and then output is... 1, 0 Why these values are different? January 1998 January 2004 Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa 1 2 3 1 2 3 4 5 6 7 8 9 10 4 5 6 7 8 9 10 11 12 13 14 15 16 17 11 12 13 14 15 16 17 18 19 20 21 22 23 24 18 19 20 21 22 23 24 25 26 27 28 29 30 31 25 26 27 28 29 30 31 ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=13975&edit=1

« previous php.pear.dev (#3710) next »