Sha256: 37b2e1e3bc04463a5fb0b938e2b22d81f2e4fe21c3fcb02f48e9d0fd5c282d8f
Contents?: true
Size: 296 Bytes
Versions: 3
Compression:
Stored size: 296 Bytes
Contents
class Time def business_seconds_until(time) TimeClock::Comparison.new(self, time).seconds.to_i end def business_minutes_until(time) (business_seconds_until(time).to_f / 60).ceil end def business_hours_until(time) (business_seconds_until(time).to_f / 3600).ceil end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
time_clock-0.0.3 | lib/time_clock/core_ext/time.rb |
time_clock-0.0.2 | lib/time_clock/core_ext/time.rb |
time_clock-0.0.1 | lib/time_clock/core_ext/time.rb |