note 10677 added to strtotime
| From: | php at soffen dot com | Date: | Tue, 16 Jan 2001 19:46:33 +0000 |
| Subject: | note 10677 added to strtotime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9853@lists.php.net to get a copy of this message | ||
Another note is that when it encounters an invalid date string (like strtotime ('201-12
17:58:07') it will return -1.
<pre>
print "strtotime ('201-12 17:58:07') =".strtotime ('201-12
17:58:07')."\n";
</pre>
This will return:
<pre>
strtotime ('201-12 17:58:07') =-1
</pre>
http://www.php.net/manual/en/function.strtotime.php