I am trying to find the time difference between two time values in the format H:mm:ss
using PHP.
When I tried with the following code, I'm getting the difference 01:00:20
instead of 00:00:20
. What's wrong with my code?
$start_time = strtotime("0:17:14");
$end_time = strtotime("0:17:34");
$diff = $end_time - $start_time;
echo date('H:i:s', $diff);