Jump to content

check if more than 5 minutes ago


Vivid Lust

Recommended Posts

Hi, I'm wanting to check if a time() was more than 5 minutes ago, something like below but with the gaps filled in:

 

function isMoreThanFiveMinutes($time){
       $fiveMinutesAgo = $time - X
       return ( ($time > $giveMinutesAgo ) ? true : false );
}

 

I hope someone can help, thanks lots!

Link to comment
https://forums.phpfreaks.com/topic/190461-check-if-more-than-5-minutes-ago/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.