193
{
week
—Represents week of the month. It takes
first
,
second
,
third
,
fourth
,
fifth
, or
last
.
{
day
—Takes
Sunday
,
Monday
,
Tuesday
,
Wednesday
,
Thursday
,
Friday
, or
Saturday
.
add-time
: Specifies the time to be added to the standard time, in the
hh:mm:ss
format. The
hh
value
is in the range of 0 to 23, the
mm
value is in the range of 0 to 59, and the
ss
value is in the range of
0 to 59. The leading zero in a segment can be omitted. If the seconds segment is 0 (
hh
:
mm
:00), you
can omit it. If both the minutes and seconds segments are 0 (
hh
:00:00), you can omit both of the
segments. For example, to specify 08:00:00, you can enter 8.
Usage guidelines
Correct system time is essential to network management and communication. You must configure
the system time correctly before you run the device on the network.
After you set the daylight saving time, the device recalculates the system time. To view the system
time, use the
display clock
command.
Make sure all devices on the network are using the same daylight saving time as the local time.
Examples
# Set the system time ahead 1 hour for the period between 06:00:00 on 08/01 and 06:00:00 on
09/01.
<Sysname> system-view
[Sysname] clock summer-time PDT 6 08/01 6 09/01 1
Related commands
clock
protocol
clock timezone
display clock
clock timezone
Use
clock timezone
to set the local time zone.
Use
undo clock timezone
to restore the default.
Syntax
clock timezone
zone-name
{
add
|
minus
}
zone-offset
undo clock timezone
Default
The local time zone is the UTC time zone.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
zone-name
: Specifies a time zone by its name, a case-sensitive string of 1 to 32 characters.
add
: Adds an offset to the UTC time or local system time.
minus
: Decreases the UTC time or local system time by an offset.
zone-offset
: Specifies the offset in the
hh:mm:ss
format. The
hh
value is in the range of 0 to 23, the
mm
value is in the range of 0 to 59, and the
ss
value is in the range of 0 to 59. The leading zero in a