I have 2 outputs from following code:
$start_time = $dt->format('Y-m-d H:i:s');
$end_time = $dt->format('Y-m-d H:i:s');
- start_time - 2018-09-27 17:42:01
- end_time - 2018-09-27 17:42:16
How can i get the difference in minutes, even if the time diff is below 1 minute, like example 0.5 minutes (30 seconds).
I require only minutes value, even if it is part of a minute. How is it possible in php using time functions?
Thanks in advance.