note 68387 deleted from function.date by felipe
| From: | felipe@php.net | Date: | Sat, 05 Jan 2008 01:55:33 +0000 |
| Subject: | note 68387 deleted from function.date by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-134794@lists.php.net to get a copy of this message | ||
Note Submitter: Bartlomiej B dot (berdzii at o2 dot pl)
----
To calculate current quarter of the year we can use this simple function:
function quarter()
{
return ceil(date("m")/3);
}