Bug #62391 [Opn->Nab]: format('W')

From: Date: Fri, 22 Jun 2012 08:23:49 +0000
Subject: Bug #62391 [Opn->Nab]: format('W')
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-171433@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=62391&edit=1 ID: 62391 Updated by: cataphract@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

« previous php.bugs (#171433) next »