Element Path: <cwt><CALENDAR><daylightSavingDateRule>
This function is used to set the rule for when the automatic change to daylight saving time shall be executed. The size of the change is set with the daylightSavingOffset tag (see Daylight saving offset ). For more details on calendar rules, see Section Calendar rules below.
Note: You have to set the attributes for both the summertime ( daylightSavingDateRule ) and the wintertime ( standardDateRule ). The terminal will not accept only summer or winter settings because these attributes depend on each other. |
attribute |
Value range |
Default |
Description |
---|---|---|---|
rule |
3 |
– |
A weekday in a 7-day period is used for calculation of the time and date for roll over (like third Sunday in October). The attribute weekday must be set as well as the day attributes (see table below for valid values). |
month |
1–12 |
– |
|
day |
1–31 |
– |
When rule 3 is used, day should be 1, 8, 15, 22 or 30. When rule 3 is used, and weekday = Sunday, this means the first Sunday in the month, 8 means the second, 15 the third, 22 the fourth and 30 the last Sunday of a month. It may be the fourth or fifth Sunday depending on the weekday on the first day of the month. |
weekday |
Monday |
– |
Must be set when rule 3 is used. |
hour |
0–23 |
– |
|
minute |
0–59 |
– |
|
Example:
This Example: enables daylight saving time in the terminal the last Sunday in March every year at 02:00 with an offset of 60 minutes during the daylight-saving time (clock will be adjusted from 02:00 to 03:00):
<CALENDAR utcTimeOffset="60" daylightSavingOffset="60">
<daylightSavingDateRule rule="3" month="3" day="30" hour="2" minute="0"
weekday="Sunday"/>
</CALENDAR>
Example:
This Example: enables daylight saving time in the terminal the third Sunday in April every year at 02:00 with an offset of 60 minutes during the daylight-saving time (clock will be adjusted from 02:00 to 03:00):
<CALENDAR utcTimeOffset="60" daylightSavingOffset="60">
<daylightSavingDateRule rule="3" month="4" day="16" hour="1" minute="0"
weekday="Sunday"/>
</CALENDAR>