I have to substract 32:30:00 (string) to 95:05:00 (string) in php :
95:05:00 - 32:30:00
THey are coming from an addition of time .
I can't find any code working, cause strtotime doesnt accept more than 24 as a value .
Please help me, thank you.
For example, i ve tried this :
$time1 = strtotime('32:30:00');
$time2 = strtotime('95:05:00');
$difference = round(abs($time2 - $time1) / 3600,2);
echo 'différence : '.$difference;
It returns 0
It should return something like 62:35:00
Do you know if i can do it with moment.js or a php lib ?