Xtremer360 Posted June 25, 2011 Share Posted June 25, 2011 I'm just looking for a function that I can take an old date and compare it to the current date and see if more than 10 minutes has passed since that old date. Quote Link to comment https://forums.phpfreaks.com/topic/240348-comparing-two-dates-function/ Share on other sites More sharing options...
Nuv Posted June 25, 2011 Share Posted June 25, 2011 http://tinyurl.com/6bc9qp8 first two links should do the trick. Quote Link to comment https://forums.phpfreaks.com/topic/240348-comparing-two-dates-function/#findComment-1234610 Share on other sites More sharing options...
redixx Posted June 25, 2011 Share Posted June 25, 2011 $now = time(); $diff = $now - $timestamp; if ($diff => 600) { // 10 minutes has passed } Quote Link to comment https://forums.phpfreaks.com/topic/240348-comparing-two-dates-function/#findComment-1234666 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.