On Wed, Oct 08, 2003 at 03:08:44PM +0100, Shaun wrote: : : is there a function in PHP that will work out the amount of time(hours) : beween two different dates / times?
Just convert the two times into Unix timestamps, subtract one from the other, and the difference is the amount of time in seconds. Then it's a simple matter of math to convert from seconds to hours (and minutes). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php