Need a function to calculate time difference.
| From: | Jack Sasportas | Date: | Wed, 02 Jul 2003 21:11:07 +0000 |
| Subject: | Need a function to calculate time difference. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-153779@lists.php.net to get a copy of this message | ||
I am trying to find a function or information on how to properly take a start time and an end time from mysql timestamps in order to calculate time taken.
So in theory $endtime-$starttime = timespent.
It would be great if this understood that 11:55 pm til 12:10am one day apart only equals 15 minutes.
Links, example code etc would be great!
Thanks