determine how old is the thread?
#1
I wanna check if the thread is 60 minutes old and if so show an error but I can't figure how to determine that'

I have dateline form a table fetched and current time but how to create a value that I can use

if ($thread_age > $check_value)
{
error();
}


Thread date-line: 1434998086
Reply
#2
TIME_NOW - $thread['dateline']

Returns the seconds.
Support PMs will be ignored!
Reply
#3
@Jones H thanks big time buddy. I was so close but without your help wouldn't figure it out Wink +1
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)