|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-08-28 16:28 UTC] requinix@php.net
-Type: Bug
+Type: Documentation Problem
[2014-08-28 16:28 UTC] requinix@php.net
[2020-08-03 22:40 UTC] thomas at landauer dot at
[2022-05-13 14:27 UTC] git@php.net
[2022-05-13 14:27 UTC] git@php.net
-Status: Open
+Status: Closed
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 01:00:02 2025 UTC |
Description: ------------ When a value between 24 and 99 is in date/time string evaluated by DateTime:createFromFormat , it handles as valid and resulting object is Date + hours % 24 . So 36:00 is treated as date + 1 day 12:00 Expected Result: Evaluates to false. If this is by design, it should be very clearly documented. Since 100:00 returns false, this does not seem intentional. Test script: --------------- $time="30:29"; $date = DateTime::createFromFormat("H:m", $time); echo $date->format(DateTime::W3C);