I would like to display time in minues as an hour and minutes.
Example 1: I want to display 125 minutes as a 2:05
I know I can to somethink like:
$converted_time = date('H:i', mktime(0,$minutes);
You can use:
$minutes=1510; $hours = intdiv($minutes, 60).':'. ($minutes % 60);
$minutes=1510; $hours = floor($minutes / 60).':'.($minutes - floor($minutes / 60) * 60);