From: peter dot bex at solide-ict dot nl Operating system: N/A PHP version: 5.2.6 PHP Bug Type: Feature/Change Request Bug description: strftime formatting on datetime objects
Description: ------------ 1) The regular 'format' method on datetime objects only accepts date() syntax, which is severely limited in what you can do with it. The strftime syntax is more powerful. 2) As discussed in bug 45167, there's no way to call strftime using datetime object values reliably, because there are ways to create datetime objects with bogus timezone objects (objects which can not be recreated nor can their names be passed to date_default_timezone_set). Because of 1) and 2), there is a need to get strftime integrated in the datetime class. Reproduce code: --------------- N/A Expected result: ---------------- N/A Actual result: -------------- N/A -- Edit bug report at http://bugs.php.net/?id=45173&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45173&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45173&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45173&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45173&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45173&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45173&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45173&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45173&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45173&r=support Expected behavior: http://bugs.php.net/fix.php?id=45173&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45173&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45173&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45173&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45173&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45173&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45173&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45173&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45173&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45173&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45173&r=mysqlcfg