sphinx Posted August 7, 2012 Share Posted August 7, 2012 I want to return a result based on a session status and want to know how many minutes '10000' would be. if($_SESSION['first'] < (time() - 10000)) Many thanks. Link to comment https://forums.phpfreaks.com/topic/266777-how-many-minutes-would-this-be/ Share on other sites More sharing options...
Mahngiel Posted August 7, 2012 Share Posted August 7, 2012 the number is represented in seconds. so divide your number by 60 to get minutes and so on Link to comment https://forums.phpfreaks.com/topic/266777-how-many-minutes-would-this-be/#findComment-1367542 Share on other sites More sharing options...
maxudaskin Posted August 10, 2012 Share Posted August 10, 2012 I want to return a result based on a session status and want to know how many minutes '10000' would be. if($_SESSION['first'] < (time() - 10000)) Many thanks. 166 minutes, 40 seconds. I would do a quick google search before posting next time. Link to comment https://forums.phpfreaks.com/topic/266777-how-many-minutes-would-this-be/#findComment-1368453 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.