|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-08-29 03:47 UTC] derick@php.net
[2002-08-29 03:51 UTC] jc at mega-bucks dot co dot jp
[2002-08-29 08:35 UTC] derick@php.net
[2003-10-28 16:26 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 10:00:01 2025 UTC |
This code shows that strtotime does not recognize some dates that are in the correct format but invalid: $bod = "1970-1-222"; echo "I think that $bod is timestamp " . strtotime($bod) . "<BR>"; echo "and that would be " . date("Y-n-d",strtotime($bod)). "<BR>"; The output is: I think that 1970-1-222 is timestamp 19062000 and that would be 1970-8-10 The documentation says that strtotime should report -1 on a failure. Shouldn't this be a failure? Jc