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

From: Date: Wed, 07 Nov 2001 12:42:22 +0000
Subject: Bug #13975: Date_Calc::weekOfYear() function problem
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-2590@lists.php.net to get a copy of this message
From: beagle@emaila.com Operating system: Linux RedHat 7.0 PHP version: 4.0.6 PHP Bug Type: PEAR related Bug description: Date_Calc::weekOfYear() function problem <? 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 bug report at: http://bugs.php.net/?id=13975&edit=1

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