note 41482 deleted from ref.datetime by felipe
| From: | felipe@php.net | Date: | Mon, 10 Dec 2007 17:42:15 +0000 |
| Subject: | note 41482 deleted from ref.datetime by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-133188@lists.php.net to get a copy of this message | ||
Note Submitter: pk_jsp at rediffmail dot com
----
Just want to add a comment to the function datediff given by Xiven that simple difference of 2 dates
as in
$seconds = $date2 - $date1; will nor work instead the following need to be used.
$seconds = strtotime($date2) - strtotime($date1);