I Have two-time durations
- 5 hours and 55 minutes.
- 6 hours.
expecting the answer +5.00 or -5.00 for the difference between.
what are the best options to resolve the matter?
I Have two-time durations
expecting the answer +5.00 or -5.00 for the difference between.
what are the best options to resolve the matter?
Try this :
<?php
$time1 = '05:55';
$t1=strtotime($time1);
$end=strtotime('06:00');
$Min = floor((($end- $t1)/60));
echo $Min.' Min ';
?>