note 76531 deleted from function.strtotime by googleguy
| From: | googleguy@php.net | Date: | Fri, 05 Apr 2013 14:52:21 +0000 |
| Subject: | note 76531 deleted from function.strtotime by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-194352@lists.php.net to get a copy of this message | ||
Note Submitter: ThomasK
----
A major difference in behavior between PHP4x and newer 5.x versions is the handling of
"illegal" dates: With PHP4, strtotime("2007/07/55") gave a valid result that
could be used for further calculations.
This does not work anymore at PHP5.xx (here: 5.2.1), instead something like
strtotime("$dayoffset_relative_to_today days","2007/07/19") is to be used.