#48105 [Opn->Bgs]: The number of weeks in 2009 are 52, not 53
| From: | migue dot m at gmail dot com | Date: | Wed, 29 Apr 2009 11:02:25 +0000 |
| Subject: | #48105 [Opn->Bgs]: The number of weeks in 2009 are 52, not 53 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-136499@lists.php.net to get a copy of this message | ||
ID: 48105
User updated by: migue dot m at gmail dot com
Reported By: migue dot m at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Calendar related
Operating System: Windows XP SP3
PHP Version: 5.2.9
New Comment:
I'm stupid, sorry, the ISO-8601 say that 2009 HAVE 53 weeks.
Previous Comments:
------------------------------------------------------------------------
[2009-04-29 10:57:47] migue dot m at gmail dot com
Description:
------------
I use this code to calculate the week number for December 28 of 2009:
strftime("%V", mktime(12,0,0,12,28,$x));
This function have to return "1" but it returns "53" and the 2009 year
hasn't 53 weeks.
I also tried other code with the same results:
date('W', strtotime("December 28, $x"));
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48105&edit=1