Module: EventSource::Controls::Time::Processed::Raw

Defined in:
lib/event_source/controls/time.rb

Class Method Summary collapse

Class Method Details

.example(time = nil, offset_milliseconds: nil) ⇒ Object



31
32
33
34
35
36
37
# File 'lib/event_source/controls/time.rb', line 31

def self.example(time=nil, offset_milliseconds: nil)
  time ||= Time::Raw.example
  offset_milliseconds ||= 11
  offset = Rational(offset_milliseconds, 1000)
  time += offset
  time
end