Specifications
set clock
66
set clock
Displays and sets the date and time.
Syntax
set clock <[[[[YY]MM]DD]HH]MM[.SS]>
Input mode
User mode and administrator mode
Parameters
YY
Specifies the last two digits of the year in the range from 00 to 38 (for example, 00 for
the year 2000).
MM
Specifies the month in the range from 01 to 12.
DD
Specifies the day of the month in the range from 01 to 31.
HH
Specifies the hour in the range from 00 to 23.
MM
Specifies the minute in the range from 00 to 59.
SS
Specifies the second in the range from 00 to 59.
Operation when all parameters are omitted:
You can omit the year, month, day, hour, and seconds, but cannot omit the minutes.
These elements must be specified in sequence without skipping any. For example,
you cannot specify just the day of the month and the minutes (but skip the hour).
Example
To set the date and time as 22.02.11 at 15:30, enter the following command:
> set clock 1102221530
Tue Feb 22 15:30:00 UTC 2011
>
Impact on communication
None
Response messages
Table 6-1 List of response messages for the set clock command
Message Description
illegal time format. The input format of the time is incorrect.
Notes
The specification range is from January 1, 2000, at 00:00:00 to January 17, 2038, at