Jump to content

check if a stored time() is more than 2 hours ago


Vivid Lust

Recommended Posts

I was wondering how I could check if a timestamp from time(), can be checked to see if it was made more thank 2 hours ago?

 

so

 

$timeInDatabase = 1259691739;

$timeTwoHoursAgo = foo;

 

if( $timeInDatabase <= $timeTwoHoursAgo ){

//do this

}

 

any help on filling this in?

 

thanks lots

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.