how to add 6 hours to this string?
$parent = “2011-08-04 15:00:01”;
I think the best way is to convert it to timestamp add 21600 seconds and then convert it back to date time.
How to do this?
Thanks in advance.
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.
You’re maybe looking for the http://www.php.net/manual/en/function.strtotime.php function