note 60829 deleted from function.strtotime by danbrown
| From: | danbrown@php.net | Date: | Mon, 18 May 2009 02:27:45 +0000 |
| Subject: | note 60829 deleted from function.strtotime by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-155655@lists.php.net to get a copy of this message | ||
Note Submitter: matt at australiangamer dot com
----
Regarding the previous post on strtotime() being used to convert mysql datetime strings, I agree
that this is not widely realized.
Part of the reason for this is that it is only a relatively recent addition. Prior to PHP 5.0,
though it might have been an earlier version, strtotime() would return -1 on a mysql datetime
string.
If you're on a server that doesn't have a recent PHP version test your result before
assuming this one works.