MortimerJazz Posted January 26, 2007 Share Posted January 26, 2007 Hi there,I'm trying to calculate the time since a registered user last logged into a website.I have two variables: $last_login (timestamp from DB showing the last time a particular user logged in)now() - Timestamp showing current time/dateI've tried subtracting one from the other, but I'm not getting the result that I needed.Can anyone help me at all?Thanks, Link to comment https://forums.phpfreaks.com/topic/35882-calculating-the-difference-between-two-dates/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.