Specifications

Command Line Interface
3-40
3
calendar set
Use this command to set the date and time of the system clock.
Syntax
calendar set hour min sec {month day year | day month year}
hour - Hour in 24-hour format. (Range: 0 - 23)
min - Minute. (Range: 0 - 59)
sec - Second. (Range: 0 - 59)
month - january | february | march | april | may | june | july | august |
september | october | november | december
day - Day of month. (Range: 1 - 31)
year - Year (4-digit). (Range: 2001 - 2101)
Default Setting
None
Command Mode
Privileged Exec
Example
This example shows how to set the system clock to 15:12:34, March 21st, 2003.
show calendar
Use this command to display the system clock.
Default Setting
None
Command Mode
Normal Exec, Privileged Exec
Example
This example shows how to display the current system clock setting.
Console#calendar set 15 12 34 March 21 2003
Console#
Console#show calendar
15:12:50 March 21 2003
Console#