< Home

absolute-range

Function

The absolute-range command creates an absolute time range.

The undo absolute-range command deletes an absolute time range.

Format

absolute-range start-time start-date [ to end-time end-date ]

undo absolute-range { start-time start-date [ to end-time end-date ] | all }

Parameters

Parameter Description Value
start-time start-date Specifies the start time and date.

The start-time format is hh:mm:ss. hh is an integer ranging from 0 to 23. mm is an integer ranging from 0 to 59. ss is an integer ranging from 0 to 59.

The start-date format is YYYY/MM/DD. DD indicates a day, which is an integer ranging from 1 to 31. MM indicates a month, which is an integer ranging from 1 to 12. YYYY indicates a year, which is an integer ranging from 1970 to 2099.

end-time end-date Specifies the end time and date. The end-time and end-date formats are the same as those of the start time and date. The end time must be later than the start time. If no end time is set, the end time is 23:59:59 2099/12/31.
all Indicates all absolute time ranges. -

Views

Time range view

Default Level

2: Configuration level

Usage Guidelines

The absolute time range goes from one date through another. It cannot appear periodically.

Multiple time ranges can share the one name. The time ranges sharing the same absolute time range name are logically ORed, and the absolute time range and periodic time range are logically ANDed.

Example

# Create a time range and set the start time to 8:00:00 2013/05/01. Do not set the end time.

<sysname> system-view
[sysname] time-range test
[sysname-time-range-test] absolute-range 8:00:00 2013/05/01

# Create a time range and set the start time to 8:00:00 2013/05/01 and end time to 10:00:00 2013/08/01.

<sysname> system-view
[sysname] time-range test
[sysname-time-range-test] absolute-range 8:00:00 2013/05/01 to 10:00:00 2013/08/01
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >