mostafa_dadgar Posted January 7, 2019 Share Posted January 7, 2019 (edited) hi all i want add two time for example: now is 8:30 and i want add 1:45 to this time (answer 10:15) how can i this work in php??? please help Edited January 7, 2019 by mostafa_dadgar Link to comment Share on other sites More sharing options...
dsonesuk Posted January 7, 2019 Share Posted January 7, 2019 https://secure.php.net/manual/en/function.strtotime.php Link to comment Share on other sites More sharing options...
justsomeguy Posted January 7, 2019 Share Posted January 7, 2019 http://php.net/manual/en/datetime.add.php Link to comment Share on other sites More sharing options...
ishan_shah Posted May 30, 2019 Share Posted May 30, 2019 date_default_timezone_set('GMT'); $start = '2014-06-01 14:00:00'; echo date('Y-m-d H:i',strtotime('+1 hour +20 minutes',strtotime($start))); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now