Bug #15184: Calculate the quarter with date('Q')?

From: Date: Wed, 23 Jan 2002 16:44:26 +0000
Subject: Bug #15184: Calculate the quarter with date('Q')?
Groups: php.dev 
Request: Send a blank email to php-dev+get-77914@lists.php.net to get a copy of this message
From:             j-f@gmx.net
Operating system: -
PHP version:      4.1.1
PHP Bug Type:     Feature/Change Request
Bug description:  Calculate the quarter with date('Q')?

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 bug report at: http://bugs.php.net/?id=15184&edit=1



Thread (1 message)

  • j-f at gmx dot net
« previous php.dev (#77914) next »