161
9
Basic configuration commands
clock datetime
Syntax
clock datetime
time
date
View
User view
Default Level
3: Manage level
Parameters
time
: Configured time, in the format of
HH:MM:SS
, where
HH
is hours in the range 00 to
23,
MM
is minutes in the range 00 to 59, and
SS
is seconds in the range 00 to 59. The first
zero in the
HH
,
MM
, or
SS
value can be omitted; if the value of
SS
is 00, the
time
argument can be represented in the format of
HH:MM
; if the values of both
MM
and
SS
are 00s, the
time
argument can be represented in the format of
HH
.
date
: Configured date, in the format of
MM/DD/YYYY
or
YYYY/MM/DD
.
MM
is the
month of the year in the range 1 to 12,
DD
is the day of the month that varies with
months, and
YYYY
is a year in the range 2000 to 2035.
Description
Use the
clock datetime
command to set the current time and date of the AC.
The current time and date of the AC must be set in an environment that requires the
acquisition of absolute time.
You may choose not to provide seconds when inputting the time parameters.
Related commands:
clock summer-time one-off
,
clock summer-time repeating
,
clock
timezone
, and
display clock
.
Examples
Example 1:
Set the current system time to 14:10:20 08/01/2005.
<Sysname> clock datetime 14:10:20 8/1/2005
Example 2:
Set the current system time to 00:06:00 01/01/2007.
<Sysname> clock datetime 0:6 2007/1/1