From:             sandved at gmail dot com
Operating system: 
PHP version:      5.1.0RC3
PHP Bug Type:     Feature/Change Request
Bug description:  Quarter as parameter in the Date function

Description:
------------
(I tried to add an argument to http://bugs.php.net/bug.php?id=15184 but
didn't succeeded):

The Date function may need a way to display a quarter defined standard (in
SQL for example) as follow

Value Description
1 - Period January/March
2 - Period April/June
3 - Period July/Sep
4 - Period Oct/December

by using Q as an parameter as in SQL -
http://www.techonthenet.com/oracle/functions/to_date.php

Reproduce code:
---------------
new feature

Expected result:
----------------
date('Y\-\QQ') returns 

2005-Q1 for all dates 2005-01-01/2005-03-31
2005-Q2 for all dates 2005-04-01/2005-06-30
2005-Q3 for all dates 2005-07-01/2005-09-30
2005-Q4 for all dates 2005-10-01/2005-12-31

Ex:
2005-Q1 for the date 2005-02-09
2005-Q4 for the date 2005-12-14

Actual result:
--------------
new feature

-- 
Edit bug report at http://bugs.php.net/?id=34932&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=34932&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=34932&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=34932&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=34932&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=34932&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=34932&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=34932&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=34932&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=34932&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=34932&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=34932&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=34932&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=34932&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=34932&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=34932&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=34932&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=34932&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=34932&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=34932&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=34932&r=mysqlcfg

Reply via email to