#19788 [NEW]: Date_Calc::weekOfYear() function problem

From: Date: Sun, 06 Oct 2002 21:47:51 +0000
Subject: #19788 [NEW]: Date_Calc::weekOfYear() function problem
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-9894@lists.php.net to get a copy of this message
From: fvu@wanadoo.nl Operating system: Windows PHP version: 4.2.3 PHP Bug Type: PEAR related Bug description: Date_Calc::weekOfYear() function problem <? require "Date/Date.php"; echo Date_Calc::weekOfYear(5,1,1998) . ", "; echo Date_Calc::weekOfYear(6,1,1998); echo "<br>\n"; echo Date_Calc::weekOfYear(5,1,2004) . ", "; echo Date_Calc::weekOfYear(6,1,2004); ?> and then output is... 2, 2 1, 2 Why are these values 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 Freddy Vulto -- Edit bug report at http://bugs.php.net/?id=19788&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=19788&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=19788&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=19788&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=19788&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=19788&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=19788&r=support Expected behavior: http://bugs.php.net/fix.php?id=19788&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=19788&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=19788&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=19788&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=19788&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=19788&r=dst IIS Stability: http://bugs.php.net/fix.php?id=19788&r=isapi

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