class Chronic::RepeaterSeason
def num_seconds_til(goal, direction)
def num_seconds_til(goal, direction) start = Time.construct(@now.year, @now.month, @now.day) seconds = 0 until (start + direction * seconds).to_minidate.equals?(goal) seconds += RepeaterDay::DAY_SECONDS end seconds end