Calculating future date from seconds.
$var = 5183990; //seconds
$today = '2013-02-16 11:00:00'; //date
like I have 5183990 seconds as a variable $var.
Now I want to know future date/time after 5183990 seconds from current time.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since
time()returns the current timestamp in seconds, just add your interval in seconds to it, then format it as a date: