Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
require 'time'
class Time
def seconds_since_midnight
s = hour * 60*60
s += min * 60
s += sec
t =
puts t.sec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.