Re: [PHP] A DATE Question
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
RE: [PHP] A DATE Question
[snip] is there a function in PHP that will work out the amount of time(hours) beween two different dates / times? [/snip] http://www.php.net/strtotime -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] A DATE Question
Hi, is there a function in PHP that will work out the amount of time(hours) beween two different dates / times? Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php