Module: Clock::Timestamp

Extended by:
Timestamp
Included in:
Clock, Timestamp
Defined in:
lib/clock/clock.rb

Instance Method Summary collapse

Instance Method Details

#timestamp(time = nil, system_time: nil) ⇒ Object



120
121
122
123
# File 'lib/clock/clock.rb', line 120

def timestamp(time=nil, system_time: nil)
  time ||= now(system_time: system_time)
  time.to_f
end