![background image](http://html.mh-extra.com/html/huawei/quidway-s3900-series/quidway-s3900-series_command-manual_1698311070.webp)
Command Manual – System Maintenance and Debugging
Quidway S3900 Series Ethernet Switches-Release 1510
Chapter 1 Basic System Configuration & De
bugging Commands
Huawei Technologies Proprietary
1-1
Chapter 1 Basic System Configuration &
Debugging Commands
1.1 Basic System Configuration Commands
1.1.1 clock datetime
Syntax
clock datetime
HH:MM:SS
{
YYYY/MM/DD
|
MM/DD/YYYY
}
View
User view
Parameter
HH:MM:SS
: Current time, where HH ranges from 0 to 23, MM and SS range from 0 to
59.
YYYY/MM/DD
or
MM/DD/YYYY
: Current date, where YYYY is the year ranging from
2000 to 2099, MM is the month ranging from 1 to 12, and DD is the day ranging from 1
to 31.
Description
Use the
clock datetime
command to set the current date and time of the Ethernet
switch.
By default, it is 23:55:00 04/01/2000 when the system starts up.
In an environment that needs to obtain exact absolute time, it is required to use this
command to set the current date and time of the Ethernet switch.
Related command:
display clock
.
Example
# Set the current date and time of the Ethernet switch to 0:0:0 2001/01/01.
<Quidway> clock datetime 0:0:0 2001/01/01
1.1.2 clock summer-time
Syntax
clock summer-time
zone-name
{
one-off
|
repeating
}
start-time start-date end-time
end-date offset-time