Re: Get Hours/Mins/Secs between two timestamps?

From: Date: Wed, 12 Dec 2001 11:31:25 +0000
Subject: Re: Get Hours/Mins/Secs between two timestamps?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-77417@lists.php.net to get a copy of this message
>Is there a function in PHP that will output the difference between two timestamps (hours/mins/secs), similar in >the way that getdate() extracts the date of a timestamp? Thank you. How about subtracting the one timestamp from the other and then devide by 3600, with the remainder divided by 60 and the remainder is your seconds. Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key ----- Original Message ----- >>

« previous php.general (#77417) next »