Sha256: 7c4823a549a232da064e5d782a71c176ed8b9d983bf18a0574e60000987c1646
Contents?: true
Size: 209 Bytes
Versions: 1
Compression:
Stored size: 209 Bytes
Contents
require 'chronic' class Time def count_forward_to(time) if self > time (Chronic.parse('11:59:59pm') - self) + (time - Chronic.parse('12:00:00am')) + 1 else time - self end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
time_distribution-0.0.1 | lib/time_distribution/time.rb |