Consider this example:
time-range test {
periodic {
days { monday; tuesday; };
start-time 08:00;
end-time 22:00;
};
};
rule r1 {
term 1 {
time-range test;
# ... some actions ...
};
};
The term "1" of rule r1 will be matched positively every monday or tuesday, between 8:00am and 10:00pm.It is also possible to specify starting and ending days:
time-range test {
periodic {
days { monday; };
end-day { friday; };
start-time 08:00;
end-time 22:00;
};
};
The time-range "test" will match from Monday 8:00am to Friday 10:00pm.
time-range test {
absolute {
start-day 2003-06-16;
start-time 08:00;
end-day 2003-06-19;
end-time 21:00;
};
};
The time-range will match between 2003-06-16 8:00am and 2003-06-19 9:00pm.