1 2 3 4 5 6 7 8 9 10 11 12 |
//set timezone date_default_timezone_set('GMT'); //set an date and time to work with $start = '12:00:00'; $alert = '120'; //display the converted time echo date('Y-m-d H:i:s',strtotime('+'.$alert.'minutes',strtotime($start))); |
