The clock daylight-saving-time command sets the start time and end time of the daylight saving time.
The undo clock daylight-saving-time command deletes the daylight saving time setting.
By default, the daylight saving time is disabled.
clock daylight-saving-time dstname one-year start-time start-date end-time end-date offset
clock daylight-saving-time dstname repeating start-time repeat-start-date end-time repeat-end-date offset [ startyear [ endyear ] ]
clock daylight-saving-time dstname repeating start-time { { first | second | third | fourth | last } startweekday startmonth end-time { first | second | third | fourth | last } endweekday endmonth } offset [ startyear [ endyear ] ]
undo clock daylight-saving-time
Parameter | Description | Value |
---|---|---|
dstname |
specifies the name of summer time zone. It is a string data type. The string length range is from 1 to 32 characters. |
The value is a string of 1 to 32 characters, spaces not supported. When quotation marks are used around the string, spaces are allowed in the string. |
one-year start-time |
Sets the summer start time to a specific year. |
HH specifies the hour, which is an integer ranging from 0 to 23. MM specifies the minute, which is an integer ranging from 0 to 59. |
start-date |
Specifies the daylight saving start date in the format of YYYY-MM-DD. |
YYYY specifies the year, which is an integer ranging from 2000 to 2037. MM specifies the month, which is an integer ranging from 1 to 12. DD specifies the day, which is an integer ranging from 1 to 31. |
end-time |
Specifies the daylight saving end time in the format of HH:MM. |
HH specifies the hour, which is an integer ranging from 0 to 23. MM specifies the minute, which is an integer ranging from 0 to 59. |
end-date |
Specifies the daylight saving end date in the format of YYYY-MM-DD. |
YYYY specifies the year, which is an integer ranging from 2000 to 2037. MM specifies the month, which is an integer ranging from 1 to 12. DD specifies the day, which is an integer ranging from 1 to 31. |
offset |
Specifies the time offset added to the summer time. |
The value is in the format of HH:MM, where HH indicates the hour and MM indicates the minute. The value ranges from 00:01 to 02:00. |
repeating start-time |
Configures summer time for set of years. |
HH specifies the hour, which is an integer ranging from 0 to 23. MM specifies the minute, which is an integer ranging from 0 to 59. |
repeat-start-date |
specifies the start date, when configures summer time to the years from a certain year. |
It is in the format of MM-DD. The value of MM ranges from 1 to 12; the value of DD ranges from 1 to 31. |
repeat-end-date |
specifies the start date, when configures summer time to the years from a certain year. |
It is in the format of MM-DD. The value of MM ranges from 1 to 12; the value of DD ranges from 1 to 31. |
startyear |
specifies the start year, when configures summer time to the years from a certain year. |
It is in the format of YYYY. The value of YYYY ranges from 2000 to 2037. |
endyear |
specifies the end year, when configures summer time to the years from a certain year. |
It is in the format of YYYY. The value of YYYY ranges from 2000 to 2037. |
first |
Indicates the first working day in a specified month. |
- |
second |
Indicates the second working day in a specified month. |
- |
third |
Indicates the third working day in a specified month. |
- |
fourth |
Indicates the fourth working day in a specified month. |
- |
last |
Indicates the last working day in a specified month. |
- |
startweekday |
Specifies the start weekday. |
The value range is Mon, Tue, Wed, Thu, Fri, Sat, Sun. |
startmonth |
Specifies the start month. |
The value range is Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov and Dec. |
endweekday |
Specifies the end weekday. |
The value range is Mon, Tue, Wed, Thu, Fri, Sat, Sun. |
endmonth |
Specifies the end month. |
The value range is Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov and Dec. |
Usage Scenario
When the configuration becomes effective, you can use the display clock command to check the configuration. In addition, the message time such as log time and debug time is displayed in the configured summer time.
In VS mode, this command is supported only by the admin VS.
Configuration Impact
Note the following issues:
Before you remove the configuration of the daylight saving time, note the following points:
Follow-up Procedure
Run the display clock command to view detailed information about the system time after the configured daylight saving time takes effect.
<HUAWEI> system-view [~HUAWEI] clock daylight-saving-time z2 one-year 11:22 2020-02-01 22:11 2020-08-11 01:04
<HUAWEI> system-view [~HUAWEI] clock daylight-saving-time z3 repeating 08:00 02-01 22:11 08-08 01:04 2012 2020