Write a program to read a time in minutes and split it into days, hours and minutes.
Answers
Answered by
1
function secondsToTime($seconds) {
$dtF = new \DateTime('@0');
$dtT = new \DateTime("@$seconds");
return $dtF->diff($dtT)->format('%a days, %h hours, %i minutes and %s seconds');
}
Your command
Hope this helps you
thanks
take care
may God bless you and your family
Similar questions