Time Difference Question
Moderator: General Moderators
- tecktalkcm0391
- DevNet Resident
- Posts: 1030
- Joined: Fri May 26, 2006 9:25 am
- Location: Florida
Time Difference Question
Ok, I have a timestamp of the time the user last changed pages. I have and AJAX script doing a check and I want the PHP page its going to do find the time difference between the current time and the last changed page time and if its greater than 20 minutes to run the Javascript Function. What would I do on the page the AJAX script checks?
- tecktalkcm0391
- DevNet Resident
- Posts: 1030
- Joined: Fri May 26, 2006 9:25 am
- Location: Florida
I mean like logic wise?
Cause I cant get that to work... 
Code: Select all
if( Last Changed - Current Time < 5 mins ){
}