class Time

Public Instance Methods

time_until(future_date) click to toggle source
# File lib/spos-client/time-helpers.rb, line 8
def time_until(future_date)
  future_date.to_ms - self.to_ms
end
to_ms() click to toggle source
# File lib/spos-client/time-helpers.rb, line 4
def to_ms
  (self.to_f * 1000.0).to_i
end