absolute
To specify a time range that has a specific start date and time, a specific end date and time, or both, use the absolute command. To remove an absolute time range, use the no form of this command.
[sequence-number] absolute [start time date] [end time date]
no {sequence-number | absolute [start time date] [end time date]}
Syntax Description
sequence-number |
(Optional) Sequence number of the rule, which causes the device to insert the command in that numbered position in the time range. Sequence numbers maintain the order of rules within a time range. A sequence number can be any integer between 1 and 4294967295. By default, the first rule in a time range has a sequence number of 10. If you do not specify a sequence number, the device adds the rule to the end of the time range and assigns a sequence number that is 10 greater than the sequence number of the preceding rule. Use the resequence command to reassign sequence numbers to rules. |
start time date |
(Optional) Specifies the exact time and date when the device begins enforcing the permit and deny rules associated with the time range. If you do not specify a start time and date, the device enforces the permit or deny rules immediately. For information about value values for the time and date arguments, see the “Usage Guidelines” section. |
end time date |
(Optional) Specifies the exact time and date when the device stops enforcing the permit and deny commands associated with the time range. If you do not specify an end time and date, the device always enforces the permit or deny rules after the start time and date have passed. For information about the values for the time and date arguments, see the “Usage Guidelines” section. |
Command Default
None
Command Modes
Time-range configuration
Command History
Release |
Modification |
---|---|
4.0(1) |
This command was introduced. |
Usage Guidelines
The device interprets all time range rules as local time.
If you omit both the start and the end keywords, the device considers the absolute time range to be always active.
You specify time arguments in 24-hour notation, in the form of hours :minutes or hours :minutes :seconds . For example, in 24-hour notation, 8:00 a.m. is 8:00 and 8:00 p.m. is 20:00.
You specify date arguments in the day month year format. The minimum valid start time and date is 00:00:00 1 January 1970, and the maximum valid start time is 23:59:59 31 December 2037.
This command does not require a license.
Examples
This example shows how to create an absolute time rule that begins at 7:00 a.m. on September 17, 2007, and ends at 11:59:59 p.m. on September 19, 2007:
switch# configure terminal
switch(config)# time-range conference-remote-access
switch(config-time-range)# absolute start 07:00 17 September 2007 end 23:59:59 19 September 2007