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. 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. 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 } Link to comment https://forums.phpfreaks.com/topic/240348-comparing-two-dates-function/#findComment-1234666 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.