I used date_parse function and added some time values.
print_r(date_parse("23:00:00"));
$parsed = date_parse($totdh);
$seconds = $parsed['hour'] * 3600 + $parsed['minute'] * 60 + $parsed['second'];
$TotDownMinutes = $seconds / 60;
i had problem when the sum exceeds 24 hours. it just omits 2 if it is 25 hours and just takes 5 as hours.
Array ( [year] => [month] => [day] => [hour] => 23 [minute] => 0 [second] =>
0 [fraction] => 0 [warning_count] => 0 [warnings] => Array ( ) [error_count]
=> 0 [errors] => Array ( ) [is_localtime] => )
print_r(date_parse("26:00:00"));
Array ( [year] => [month] => [day] => [hour] => 6 [minute] => 0 [second] =>
0 [fraction] => 0 [warning_count] => 0 [warnings] => Array ( ) [error_count]
=> 1 [errors] => Array ( [0] => Unexpected character ) [is_localtime] => )
Tell me how can i add time values (like 12:30:00 + 14:00:00 + 02:00:00 = 28:30:00).
Alternatively: