ChrisMartino Posted September 3, 2010 Share Posted September 3, 2010 Hey there, Thanks for taking the time to read my thread. My issue is if I'm given a time stamp in PHP how could I calculate the number of days until that time stamp?. Thanks for your time. Link to comment https://forums.phpfreaks.com/topic/212429-days-until-timestamp/ Share on other sites More sharing options...
taquitosensei Posted September 3, 2010 Share Posted September 3, 2010 $days=ceil(strtotime($future_timestamp)-strtotime(date("Y-m-d"))/86400) Link to comment https://forums.phpfreaks.com/topic/212429-days-until-timestamp/#findComment-1106793 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.