# File lib/crono/interval.rb, line 23 def within?(value) tod = ((value.is_a? TimeOfDay) ? value : TimeOfDay.parse(value)) if @from <= @to tod >= @from && tod < @to else tod >= @from || tod < @to end end