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. Quote 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 Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.