2085
absolute time range that is active between January 1, 2004 00:00 and
December 31, 2004 23:59, you may use the time-range test from 00:00
01/01/2004 to 23:59 12/31/2004 command.
Compound time range created using the time-range time-name start-time to
end-time days { from time1 date1 [to time2 date2 ] | to time2 date2 }
command. A time range thus created recurs on the day or days of the week
only within the specified period. For example, to create a time range that is
active from 12:00 to 14:00 on Wednesdays between January 1, 2004 00:00
and December 31, 2004 23:59, you may use the time-range test 12:00 to
14:00 wednesday from 00:00 01/01/2004 to 23:59 12/31/2004 command.
You may create individual time ranges identified with the same name. They are
regarded as one time range whose active period is the result of ORing periodic
ones, ORing absolute ones, and ANDing periodic and absolute ones.
Example # Create an absolute time range named test, setting it to become active from
00:00 on January 1, 2003.
<Sysname> system-view
[Sysname] time-range test from 0:0 2003/1/1
# Create a compound time range named test, setting it to be active between 8:00
to 18:00 during working days.
<Sysname> system-view
[Sysname] time-range test 8:00 to 18:00 working-day
# Create a periodic time range named test, setting it to be active between 14:00
and 18:00 on Saturday and Sunday.
<Sysname> system-view
[Sysname] time-range test 14:00 to 18:00 off-day