#45483 [NEW]: Add an era designater to DateTime methods when formatting or parsing dates
| From: | tj at systisoft dot com | Date: | Fri, 11 Jul 2008 10:18:12 +0000 |
| Subject: | #45483 [NEW]: Add an era designater to DateTime methods when formatting or parsing dates | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-126462@lists.php.net to get a copy of this message | ||
From: tj at systisoft dot com
Operating system: All
PHP version: 5.3CVS-2008-07-11 (CVS)
PHP Bug Type: Feature/Change Request
Bug description: Add an era designater to DateTime methods when formatting or parsing dates
Description:
------------
It is currently not possible to specify an era designator in a format when
parsing or formatting dates with DateTime::createFromFormat or
DateTime::format.
An era designater would be BC or AD as in 1/1/0200 BC or 1/1/2004 AD.
I don't know which format char would be good since 'G' which is used in
some other format patterns as era designator seems to be already taken.
Reproduce code:
---------------
N/A
Expected result:
----------------
N/A
Actual result:
--------------
N/A
--
Edit bug report at http://bugs.php.net/?id=45483&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45483&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45483&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45483&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45483&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=45483&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=45483&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=45483&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=45483&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=45483&r=support
Expected behavior: http://bugs.php.net/fix.php?id=45483&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=45483&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=45483&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45483&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45483&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45483&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=45483&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=45483&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=45483&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=45483&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=45483&r=mysqlcfg