|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests |
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 02:00:01 2025 UTC |
<? 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