22.05.2014, 15:24
Just save the unix timestamp (with gettime()) and then do what brent94 recommended.
The saved timestamp will look something like 1400773076 which is the amount of seconds since January 1st, 1970. And then as brent94 stated, check whether the timestamp now (gettime() again) equals the saved timestamp + 18000 (seconds, so 5 hours). That way you don't have to worry about the format of the timestamp, so no hours or minutes.
The saved timestamp will look something like 1400773076 which is the amount of seconds since January 1st, 1970. And then as brent94 stated, check whether the timestamp now (gettime() again) equals the saved timestamp + 18000 (seconds, so 5 hours). That way you don't have to worry about the format of the timestamp, so no hours or minutes.

