I have a feeling there is a simple/built-in way to do this but I can\'t find it.
I have a duration (in seconds) in an integer and I want to display it in a friendly form
hours = 3.5456 value = (hours*60).divmod(60).map{ |a| "%02d"%[a.floor] }.join(":") => "03:32"