R3166-R3206-HP High-End Firewalls Getting Started Command Reference-6PW101
47
• Enter the year, month and date one by one, separated by spaces. The year ranges from 2000 to
2035; the month can be January, February, March, April, May, June, July, August, September,
October, November or December; the start week can be the first, second, third, fourth, fifth or last
week of the month; the start date is Sunday, Monday, Tuesday, Wednesday, Thursday, Friday,
Saturday.
end-time: End time, in the hh:mm:ss format. Zeros can be omitted, unless you specify 00:00:00.
end-date: End date which can be set in the following ways:
• Enter the year, month and date at one time, in the MM/DD/YYYY or YYYY/MM/DD format.
• Enter the year, month and date one by one, separated by spaces. The year ranges from 2000 to
2035; the month can be January, February, March, April, May, June, July, August, September,
October, November or December; the end week can be the first, second, third, fourth, fifth or
last
week of the month; the end date is Sunday, Monday, Tuesday, Wednesday, Thursday, Friday,
Saturday.
add-time: Time added to the standard time of the firewall, in the hh:mm:ss format. Zeros can be omitted,
unless you specify 00:00:00.
Description
Use the clock summer-time repeating command to adopt the daylight saving time repeatedly.
Use the undo clock summer-time command to cancel the configuration of the daylight saving time.
For example, if you specify start-date and start-time as 2008/6/6 and 00:00:00, end-date and
end-time to 2008/10/01 and 00:00:00, and add-time to 01:00:00, the daylight saving time range is
from 00:00:00 of June 6 to 00:00:00 of October 1 each year from 2008 (2008 inclusive). The daylight
saving time adds one hour to the standard time of the firewall.
NOTE:
• To view the result after the configuration takes effect, use the display clock command. The time
displayed in the log or debug information is the adjusted local time.
• The time range from “start-time” in “start-date” to “end-time” in “end-date” must be lon
g
er than one da
y
and shorter than one year. Otherwise, the ar
g
ument is considered as invalid and the confi
g
uration fails.
• If the standard time of the firewall is in the time range specified with this command, the system time
automatically adds “add-time” after the execution of this command.
Related commands: clock datetime, clock summer-time one-off, clock timezone, and display clock.
Examples
# For the daylight saving time in abc2 between 06:00:00 on 08/01/2007 and 06:00:00 on
09/01/2007 and from 06:00:00 08/01 to 06:00:00 on 09/01 each year after 2007, set the system
clock ahead one hour.
<Sysname> system-view
[Sysname] clock summer-time abc2 repeating 06:00:00 08/01/2007 06:00:00 09/01/2007
01:00:00
clock timezone
Syntax
clock timezone zone-name { add | minus } zone-offset
undo clock timezone