Versions Compared

Key

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

...

An event that occurs during the 3 o'clock PM hour:

Code Block
  HourRange(start = 15, end = 15)

An event that occurs on Monday, Tuesday, and Wednesday:

Code Block
  DayOfWeekRange(start = Monday, end = Wednesday)

Day In Month Expression

...

The Substitution Expression

The Substitution temporal expression works a lot like a Difference expression, except it provides a substitute for the exclusion.

Info

The Substitution expression is not available in Release 9.04.

Code Block

  Substitution:
    Include:
      Expression(parameter1, parameter2, ...)
    Exclude:
      Expression(parameter1, parameter2, ...)
    Substitute:
      Expression(parameter1, parameter2, ...)
Substitution Examples

An event that occurs on the first Monday of the month, except on Labor Day (first Monday in September) - where it is rescheduled for the following Tuesday:

Code Block

  Substitution:
    Include:
      DayInMonth(Monday, 1)
    Exclude:
      Intersection:
        DayInMonth(Monday, 1)
        MonthRange(9, 9)
    Substitute:
      DayOfWeekRange(Tuesday, Tuesday)

An event that occurs Monday, Tuesday, Wednesday, and Saturday at 8:00 AM except the last Saturday of the month - where it is rescheduled for the following Sunday at 1:00 PM:

Code Block

  Substitution:
    Include:
      Intersection:
        MinuteRange(0, 0)
        HourRange(8, 8)
        Union:
          DayOfWeekRange(Monday, Wednesday)
          DayOfWeekRange(Saturday, Saturday)
    Exclude:
      DayInMonth(Saturday, -1)
    Substitute:
      Intersection:
        MinuteRange(0, 0)
        HourRange(13, 13)
        DayOfWeekRange(Sunday, Sunday)