Edit report at https://bugs.php.net/bug.php?id=62391&edit=1

 ID:                 62391
 Updated by:         cataphr...@php.net
 Reported by:        master dot zion at gmail dot com
 Summary:            format('W')
-Status:             Open
+Status:             Not a bug
 Type:               Bug
 Package:            Unknown/Other Function
 Operating System:   windows
 PHP Version:        5.3Git-2012-06-22 (Git)
 Block user comment: N
 Private report:     N

 New Comment:

Not a bug. In general, Jan 1 is not in week 1. Week 1 is the first week that 
contains at least 4 days from that year, and for this purpose weeks are deemed 
to start on Mondays.


Previous Comments:
------------------------------------------------------------------------
[2012-06-22 04:11:03] master dot zion at gmail dot com

Description:
------------
$td1 = new DateTime('01/01/2012');
echo $td1->format("W"); // 52 ???



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=62391&edit=1

Reply via email to