R2511-HP MSR Router Series ACL and QoS Command Reference(V5)

37
and YYYY is the year in the calendar in the range of 1970 to 2100. If not specified, the start time is
01/01/1970 00:00 AM, the earliest time available in the system.
to time2 date2: Specifies the end time and date of the absolute time statement. The time2 argument has
the same format as the time1 argument, but its value is in the range of 00:00 to 24:00. The date2
argument has the same format and value range as the date1 argument. The end time must be greater
than the start time. If not specified, the end time is 12/31/2100 24:00 PM, the maximum time available
in the system.
Usage guidelines
You can create multiple statements in a time range. Each time statement can take one of the following
forms:
Periodic statement in the start-time to end-time days format. A periodic statement recurs periodically
on a day or days of the week.
Absolute statement in the from time1 date1 to time2 date2 format. An absolute statement does not
recur.
Compound statement in the start-time to end-time days from time1 date1 to time2 date2 format. A
compound statement recurs on a day or days of the week only within the specified period. For
example, to create a time range that is active from 08:00 to 12:00 on Monday between January
1, 2010 00:00 and December 31, 2010 23:59, use the time-range test 08:00 to 12:00 mon from
00:00 01/01/2010 to 23:59 12/31/2010 command.
You can create a maximum of 256 time ranges, each with a maximum of 32 periodic statements and 12
absolute statements. The active period of a time range is calculated as follows:
1. Combining all periodic statements
2. Combining all absolute statements
3. Taking the intersection of the two statement sets as the active period of the time range
Examples
# Create a periodic time range t1, setting it to be active between 8:00 to 18:00 during working days.
<Sysname> system-view
[Sysname] time-range t1 8:0 to 18:0 working-day
# Create an absolute time range t2, setting it to be active in the whole year of 2010.
<Sysname> system-view
[Sysname] time-range t2 from 0:0 1/1/2010 to 24:0 12/31/2010
# Create a compound time range t3, setting it to be active from 08:00 to 12:00 on Saturdays and
Sundays of the year 2010.
<Sysname> system-view
[Sysname] time-range t3 8:0 to 12:0 off-day from 0:0 1/1/2010 to 24:0 12/31/2010
# Create a compound time range t4, setting it to be active from 10:00 to 12:00 on Mondays and from
14:00 to 16:00 on Wednesdays in the period of January through June of the year 2010.
<Sysname> system-view
[Sysname] time-range t4 10:0 to 12:0 1 from 0:0 1/1/2010 to 24:0 1/31/2010
[Sysname] time-range t4 14:0 to 16:0 3 from 0:0 6/1/2010 to 24:0 6/30/2010
Related commands
display time-range