Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
  Difference:
    Include:
      Substitution:
        Include:
          Union:
            Intersection:
              MinuteRange(0, 0)
              HourRange(18, 18)
              DayOfWeekRange(Monday, Wednesday)
            Intersection:
              MinuteRange(0, 0)
              HourRange(10, 10)
              DayOfWeekRange(Saturday, Saturday)
        Exclude:
          DayInMonth(Saturday, -1)
        Substitute:
          Intersection:
            MinuteRange(0, 0)
            HourRange(13, 13)
            DayOfWeekRange(Sunday, Sunday)
    Exclude:
      Intersection:
        DayOfMonthRange(17, 17)
        MonthRange(3, 3)

Complicated temporal expressions like this need to be built from the inside out. So, to start off you will create the Monday through Wednesday intersection, the Saturday intersection, the Sunday intersection, and the Saint Patrick's Day intersection. Finally, you will assemble the intersections into the Union, Substitution, and Difference collections.