Created
November 24, 2016 06:59
-
-
Save todd-a-jacobs/c6a0bea3e4966ac269c391bfb117d6ce to your computer and use it in GitHub Desktop.
format minutes as "hours:minutes"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def hours_minutes minutes | |
"%d:%02d" % minutes.divmod(60) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment