Show/Hide Toolbars

CWT Software Configuration Handbook

Element        Path: <cwt><CALENDAR><calendarRule>

Calendar rules are used to define exceptions to normal-week day types.

The calendar rule tags are processed in order and the last tag is used if several rules overlap.

attributes

rule

Value:1 – 4
Rule:1
Explanation:Specific date regardless of weekday.
Example:December 24 i.e. day type 5.

<calendarRule rule="1" month="12" day="24" dayType="5"/>

Rule:2
Explanation:Specific date including weekday.
Example:If December 24 is a Saturday, it should be day type 4.

<calendarRule rule="2" month="12" day="24" weekday="Saturday" dayType="4"/>

Rule:3
Explanation:Weekday in a seven-day period.
The holiday occurs on a particular weekday, either on the date indicated or within the six days following.
Example:First Thursday as from October 1 should be day type 3.

<calendarRule rule="3" month="10" day="1" weekday="Thursday" dayType="3"/>

Rule:4
Explanation:Number of days before or after Easter Day according to the Gregorian calendar.
To use this rule, you need to calculate values to use for the <month> and <day> variables.

A date before Easter Day is calculated as 10000 minus the number of days before Easter Day.

A date after Easter Day is entered as 0000 plus the number of days after Easter day.

The resulting value is split so that the first and second digit are used as the variable <month> and the third and fourth digits are used as the variable <day>.

Example:Maundy Thursday should be day type 1.
Maundy Thursday occurs three days before Easter Day; 10000 – 3 = 9997.
The month variable becomes 99 and the day variable 97.

<calendarRule rule="4" month="99" day="97" dayType="1"/>

month

Value:0 – 100

day

Value:0 – 100

weekday

Value:Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday

dayType

Value:0 – 255
Description:The day type that the day represented by the calendar rule shall be handled as in the terminal.

Example:

See Calendar examples for suitable Example: countries.