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