Re: Need a function to calculate time difference.

From: Date: Wed, 02 Jul 2003 21:29:09 +0000
Subject: Re: Need a function to calculate time difference.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-153786@lists.php.net to get a copy of this message
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 > >

« previous php.general (#153786) next »