#15184 [Asn->WFx]: Calculate the quarter with date('Q')?

From: Date: Fri, 12 Aug 2005 06:46:50 +0000
Subject: #15184 [Asn->WFx]: Calculate the quarter with date('Q')?
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-83430@lists.php.net to get a copy of this message
ID: 15184 Updated by: derick@php.net Reported By: j-f at gmx dot net -Status: Assigned +Status: Wont fix Bug Type: Feature/Change Request Operating System: - PHP Version: 4.1.1 Assigned To: derick New Comment: Some people have different opinions on when the quarter starts. Just saying that it starts at january 1 is in correct, as most people start Q1 in the first week of the year or something. That's why I don't think we should add this. Previous Comments: ------------------------------------------------------------------------ [2005-08-11 19:22:39] nlopess@php.net One more for you, Derick :) ------------------------------------------------------------------------ [2002-01-23 11:44:26] j-f at gmx dot net I added a note how to calculate the quarter: ceil(date('n')/3); But I suggest extending date() with the option 'Q' or 'q'. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15184&edit=1

« previous php.bugs (#83430) next »