Method: EventSource::Controls::Time::Effective::Raw.example
- Defined in:
- lib/event_source/controls/time.rb
.example(time = nil, offset_milliseconds: nil) ⇒ Object
49 50 51 52 53 54 55 |
# File 'lib/event_source/controls/time.rb', line 49 def self.example(time=nil, offset_milliseconds: nil) time ||= Time::Raw.example offset_milliseconds ||= 1 offset = Rational(offset_milliseconds, 1000) time += offset time end |