From:             
Operating system: N/A
PHP version:      Irrelevant
Package:          Date/time related
Bug Type:         Feature/Change Request
Bug description:abbreviate "Y-m-d H:i:s" to Q

Description:
------------
---
>From manual page: http://www.php.net/function.date
---
Is there any chance the common Y-m-d H:i:s can be summarized as "Q" for the
common MySQL datetime format. I have written this sequence hundreds of
times (You're the man now dog, Hamlet in space?)
Seeing as MySQL and PHP are so commonly tied together I think this could be
a very useful shortcut to add.

http://stackoverflow.com/search?q=Y-m-d+H%3Ai%3As over 5.000 related
issues
https://www.google.com/search?q=%22Y-m-d+H%3Ai%3As%22 over 1.7 million
results
Easier and quicker to memorize.


Test script:
---------------
<?php 
echo date('Q'); // Prints Q

Expected result:
----------------
2012-05-10 12:00:00


-- 
Edit bug report at https://bugs.php.net/bug.php?id=61987&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=61987&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=61987&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=61987&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=61987&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=61987&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=61987&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=61987&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=61987&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=61987&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=61987&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=61987&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=61987&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=61987&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=61987&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=61987&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=61987&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=61987&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=61987&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=61987&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=61987&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=61987&r=mysqlcfg

Reply via email to