I save the time the user last loggs in and compair it to the time the user has currently logged in at.
I save 10 digits, the month, the day, the hour and the minute. If any field is less than 10 I put a 0 infront of it. So say it was November 5th, 11:30. I save 11051130
My question is HOW do I subtract the current time from the last time logged in? A straight subtract doesnt work cause the time being in 60th for minutes and 24 for hours gives strange results.
Anyone have any ideas??
I save 10 digits, the month, the day, the hour and the minute. If any field is less than 10 I put a 0 infront of it. So say it was November 5th, 11:30. I save 11051130
My question is HOW do I subtract the current time from the last time logged in? A straight subtract doesnt work cause the time being in 60th for minutes and 24 for hours gives strange results.
Anyone have any ideas??