Created
May 21, 2010 23:41
-
-
Save viniciussbs/409572 to your computer and use it in GitHub Desktop.
Utilities for the class Fixnum
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
class Fixnum | |
# Convert a number in seconds to minutes (mm:ss) | |
def to_minutes | |
Time.at(self).gmtime.strftime('%M:%S') | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment