note 77541 modified in function.strtotime by danbrown
| From: | danbrown@php.net | Date: | Sat, 25 Oct 2008 05:51:48 +0000 |
| Subject: | note 77541 modified in function.strtotime by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-145741@lists.php.net to get a copy of this message | ||
Another inconsistency between versions:
<?php
print date('Y-m-d H:i:s', strtotime('today')) . "\n";
print date('Y-m-d H:i:s', strtotime('now')) . "\n";
?>
In PHP 4.4.6, "today" and "now" are identical, meaning the current timestamp.
In PHP 5.1.4, "today" means midnight today, and "now" means the current
timestamp.
--was--
Another inconsistency between versions:
print date('Y-m-d H:i:s', strtotime('today')) . "\n";
print date('Y-m-d H:i:s', strtotime('now')) . "\n";
In PHP 4.4.6, "today" and "now" are identical, meaning the current timestamp.
In PHP 5.1.4, "today" means midnight today, and "now" means the current
timestamp.
http://php.net/manual/en/function.strtotime.php