Module: Clock::Timestamp
Instance Method Summary collapse
Instance Method Details
#timestamp(time = nil, system_time: nil) ⇒ Object
115 116 117 118 |
# File 'lib/clock/clock.rb', line 115 def (time=nil, system_time: nil) time ||= now(system_time: system_time) time.to_f end |