Re: A DATE Question

From: Date: Wed, 08 Oct 2003 15:21:34 +0000
Subject: Re: A DATE Question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-165458@lists.php.net to get a copy of this message
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).

« previous php.general (#165458) next »