Convert Minute to Hour Script

Convert Minute to Hour Script is use to convert minutes to hours formats.

Demo :

        Type Minute :  

Example :

Type Minute : 566

Code :

Following code is use to convert minute to hour formats if you need to copy and use to your website.

  $minute = 566;
  echo sprintf("%02dh %02dm", floor($minute/60), $minute%60);

Which is more easily understood: "566 minutes" or "9 hour, 26 minutes"? The previous listing takes care of performing this conversion between formats. Given the total number of minutes, the number of hours can be obtained by dividing by 60, with the remainder representing the number of minutes. The sprintf() function takes care of sticking the two pieces together.

Free Download Script :

If you need Convert Minute To Hour Script click and download from following link.