|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-11-27 03:10 UTC] k.schroeder@php.net
[2002-11-30 10:07 UTC] pajoye@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 20:00:01 2025 UTC |
<? 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