Time expressions

Time expressions use time windows to specify when to change configurations.

Time expression syntax

A time expression is made up of the time keyword followed by one or more space-separated time windows enclosed in parentheses. Time expressions can be combined using the &&, ||, and ! logical operators.

The syntax for a time expression is:

expression = time(time_window[ time_window ...])
              | expression && expression
              | expression || expression 
              | !expression

Example

Both of the following expressions specify weekends (Friday evening at 6:30 PM until Monday morning at 8:30 AM) and nights (8:00 PM to 8:30 A daily).

time(5:18:30-1:8:30 20:00-8:30)
time(5:18:30-1:8:30) || time(20:00-8:30)