Re: Calculating difference between two timestamps

From: Date: Thu, 27 Nov 2003 15:22:01 +0000
Subject: Re: Calculating difference between two timestamps
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-171217@lists.php.net to get a copy of this message
Neil Freeman wrote:
Hi there, Does anyone have any suggestions as to how I can calculate whether one timestamp is within one second of another timestamp. e.g.
Timestamp 1    10:59:59
Timestamp 2    11:00:00
Essentially I need to create a function which'll take two parameters and return whether the two parameters are within one second of each other. Any suggestions would be great. Neil
Have you looked at http://www.php.net/manual/en/function.mktime.php? Bogdan

« previous php.general (#171217) next »