module TimeClock::BusinessTimeUntil

Public Instance Methods

business_hours_until(time) click to toggle source
# File lib/time_clock/business_time_until.rb, line 11
def business_hours_until(time)
  (business_seconds_until(time).to_f / 3600).ceil
end
business_minutes_until(time) click to toggle source
# File lib/time_clock/business_time_until.rb, line 7
def business_minutes_until(time)
  (business_seconds_until(time).to_f / 60).ceil
end
business_seconds_until(time) click to toggle source
# File lib/time_clock/business_time_until.rb, line 3
def business_seconds_until(time)
  TimeClock::Comparison.new(self, time).seconds.to_i
end