Re: Re: Calculating difference between two timestamps

From: Date: Thu, 27 Nov 2003 15:50:51 +0000
Subject: Re: Re: Calculating difference between two timestamps
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-171218@lists.php.net to get a copy of this message
Perfect - thanks Bogdan Bogdan Stancescu wrote:
*********************************************** This Email Has Been Virus Swept *********************************************** 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
-- ---------------------- www.curvedvision.com ---------------------- This communication is confidential to the intended recipient(s). If you are not that person you are not permitted to make use of the information and you are requested to notify the sender immediately of its receipt then destroy the copy in your possession. Any views or opinions expressed are those of the originator and may not represent those of Advanced System Architectures Ltd. *** This Email Has Been Virus Checked ***

« previous php.general (#171218) next »