Skip to content

Instantly share code, notes, and snippets.

@trak3r
Created July 14, 2009 19:08
Show Gist options
  • Save trak3r/147115 to your computer and use it in GitHub Desktop.
Save trak3r/147115 to your computer and use it in GitHub Desktop.
remove minutes/seconds from time
class Time
def no_minutes
return self - self.min.minutes - self.sec.seconds
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment