To manually set the system clock, use one of the formats of the clock set EXEC command.
clock set hh:mm:ss day month year
clock set hh:mm:ss month day year
Syntax Description
hh:mm:ss
Current time in hours (military format), minutes, and seconds.
day
Current day (by date) in the month.
month
Current month (by name).
year
Current year (no abbreviation).
Command Modes
EXEC
Command History
Release Modification 10.0
This command was introduced.
Usage Guidelines
Generally, if the system is synchronized by a valid outside timing mechanism, such as an NTP or VINES clock source, or if you have a router with calendar capability, you do not need to set the system clock. Use this command if no other time sources are available. The time specified in this command is relative to the configured time zone.
Examples
The following example manually sets the system clock to 1:32 p.m. on July 23, 1997:
clock set 13:32:00 23 July 1997