/ Published in: PHP

So. You have some minutes and want a "human readable" version? Sure thing baby!
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$minutes = 3000; // // Assuming that your minutes value is $minutes // $m = $minutes - ($d * 1440) - ($h * 60); // // Then you can output it like so... // echo "{$minutes}min converts to {$d}d {$h}h {$m}m";
Comments
