|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-05-03 18:07 UTC] brent dot hansen at gmail dot com
[2013-05-03 18:07 UTC] brent dot hansen at gmail dot com
-Type: Bug
+Type: Feature/Change Request
[2021-01-13 15:02 UTC] cmb@php.net
-Status: Open
+Status: Suspended
[2021-01-13 15:02 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 18:00:02 2025 UTC |
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