RE: [PHP] Need a function to calculate time difference.
| From: | Boaz Yahav | Date: | Fri, 04 Jul 2003 09:02:13 +0000 |
| Subject: | RE: [PHP] Need a function to calculate time difference. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-153969@lists.php.net to get a copy of this message | ||
See if this helps you
Getting the difference between two time strings.
http://examples.weberdev.com/get_example.php3?count=3307
Difference between two dates (i.e. between today and a date in future).
The program is
based on php-timestamp, but in your browser you see the usual
dates(i.e.: dd.mm.yyyy)
http://examples.weberdev.com/get_example.php3?count=3240
Sincerely
berber
Visit http://www.weberdev.com/ Today!!!
To see where PHP might take you tomorrow.
-----Original Message-----
From: Jack Sasportas [mailto:Jack@InnovativeInternet.com]
Sent: Thursday, July 03, 2003 10:17 PM
To: php
Subject: Re: [PHP] Need a function to calculate time difference.
datetime.
Thanks
Jim Lucas wrote:
>what type of format does your column take?
>
>date
>time
>datetime
>
>??
>
>Jim Lucas
>----- Original Message -----
>From: "Jack Sasportas" <Jack@InnovativeInternet.com>
>To: "php" <php-general@lists.php.net>
>Sent: Wednesday, July 02, 2003 2:11 PM
>Subject: [PHP] Need a function to calculate time difference.
>
>
>
>
>>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
>>
>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>>
>>
>
>
>
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php