Class: SirTracksAlot::Clock

Inherits:
Object
  • Object
show all
Defined in:
lib/sir_tracks_alot/clock.rb

Class Method Summary collapse

Class Method Details

.convert(human) ⇒ Object


7
8
9
# File 'lib/sir_tracks_alot/clock.rb', line 7

def self.convert(human)
  Time.parse(human).to_i
end

.nowObject


3
4
5
# File 'lib/sir_tracks_alot/clock.rb', line 3

def self.now
  Time.now.utc.to_i
end