Time Difference
| From: | Lerp | Date: | Fri, 15 Feb 2002 14:45:45 +0000 |
| Subject: | Time Difference | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-16977@lists.php.net to get a copy of this message | ||
Hi again. I have a date field in my mssql 7.0 db format : 2/14/2002
12:21:28 PM . I would like to know how to calculate the difference in
seconds between 2 such timestamps.
$starttime = mktime($hour, $minute, $second, $month, $day, $year); returns
:1013776613
endtime = mktime($hour, $minute, $second, $month, $day, $year); returns:
1007303960
These are the number of seconds since epoch, correct?
So obviously there's something I'm missing, but not sure what I've missed :)
Your help is muchly appreciated, thx Joe :)