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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to