|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2017-07-15 17:29 UTC] yaozeyuan93 at gmail dot com
Description: ------------ according to [document](http://php.net/manual/en/function.strtotime.php#refsect1-function.strtotime-changelog), put number into strtotime will be ignore and return false. But if the number > 1500367000, strtotime will return a big number but not false instead Test script: --------------- <?php $timestamp = 1500367000; // result by strtotime('2017-7-18 16:36:40'),larger will also had this problem echo strtotime($timestamp); // while return 158748447636, not false Actual result: -------------- 158748447636 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 08 12:00:01 2026 UTC |
If it is looking for HHMMSSYYYY why would: strtotime("1500366999"); return false but: strtotime("1500367000"); return a timestamp?And you can make it work by prefixing the @ in front of the number: strtotime("@1500367000");