Class: SirTracksAlot::Clock
- Inherits:
-
Object
- Object
- SirTracksAlot::Clock
- 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 |
.now ⇒ Object
3 4 5 |
# File 'lib/sir_tracks_alot/clock.rb', line 3 def self.now Time.now.utc.to_i end |