#39106 [Opn->Bgs]: date("w") incompatible with date("W")

From: Date: Tue, 10 Oct 2006 10:53:46 +0000
Subject: #39106 [Opn->Bgs]: date("w") incompatible with date("W")
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-103353@lists.php.net to get a copy of this message
ID: 39106 Updated by: tony2001@php.net Reported By: felixmallek at gmx dot de -Status: Open +Status: Bogus Bug Type: *Calendar problems Operating System: n/a PHP Version: 5.1.6 New Comment: Expected and well documented behaviour, no bug here. Previous Comments: ------------------------------------------------------------------------ [2006-10-10 10:42:26] felixmallek at gmx dot de Description: ------------ Hi, I'm creating a calendar using the date() function. I want to show in this calendar the Week-number, but there are two different standarts: 1) date("w") has Sunday as the first day of the week 2) date("W") has Monday as the first day of the week I think it's rubbish because the different standarts makes a calendar awkward. I think it would be not bad to edit one of standarts in the next Version of PHP or in one of the following updates. Thanks Felix ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39106&edit=1

« previous php.bugs (#103353) next »