|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-08-07 04:41 UTC] eru@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 21:00:01 2025 UTC |
2 examples: Try: date("W",mktime (0,0,0,12,31,2001)) gives week 53. This should be week 1 of year 2002. date("W",mktime (0,0,0,1,2,2000)) gives week 0. This should be week 52 of year 1999. So: 1) the weeknumber is not correct 2) you should also be able to get the iso Year because this can be different from the year. I hope this helps in getting a better world....