My Code is :
$hm = strtotime('33:00:00')-strtotime('00:30:00');
$hms = gmdate("H:i:s", $hm);
i need the output is 32:30:00
My Code is :
$hm = strtotime('33:00:00')-strtotime('00:30:00');
$hms = gmdate("H:i:s", $hm);
i need the output is 32:30:00
2
Answers
Use this code to get subtracted values.
To get added or subtracted value from same function.
This is an edited answer. I optimized the code to make it work for you in one function.