xwishmasterx Posted May 21, 2012 Share Posted May 21, 2012 Hello I am trying to do a cronjob to check if a user has been online within the past 24 hours. I have a column with "last_login" with this format: "1337593284". How can I do a simple if (last_login+24hours< servertime) { do something... Link to comment https://forums.phpfreaks.com/topic/262858-need-help-with-time24-hours/ Share on other sites More sharing options...
Braxton Posted May 21, 2012 Share Posted May 21, 2012 if (last_login + 86400 < server_time) { Link to comment https://forums.phpfreaks.com/topic/262858-need-help-with-time24-hours/#findComment-1347237 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.