Edit report at https://bugs.php.net/bug.php?id=64767&edit=1

 ID:                 64767
 User updated by:    brent dot hansen at gmail dot com
 Reported by:        brent dot hansen at gmail dot com
 Summary:            DateInterval::format Inconsistant
 Status:             Open
-Type:               Bug
+Type:               Feature/Change Request
 Package:            Date/time related
 Operating System:   All
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

Changing to request instead of bug.


Previous Comments:
------------------------------------------------------------------------
[2013-05-03 00:03:23] brent dot hansen at gmail dot com

Description:
------------
DateInterval::format() does not follow standard like DateTime & Date. Need to 
use 
new format.  What used to be H:i:s for formatting now needs H:I:S





Test script:
---------------
$interval = new DateInterval('P2Y4DT6H8M');

echo $interval->format("%Y-%m-%d %H:%i:%s");

Expected result:
----------------
02-00-04 06:08:00

Actual result:
--------------
02-0-4 06:8:0


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=64767&edit=1

Reply via email to