module EventSource::Controls::Time::Processed::Raw

Public Class Methods

example(time=nil, offset_milliseconds: nil) click to toggle source
# 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