Command:

clock set


Mode:

Router#


Syntax:

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 Description:

 

To manually set the system clock, use one of the formats of the clock set EXEC command. 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.


Example:

 

The following example manually sets the system clock to 1:32 p.m. on July 23, 1997:

Router#clock set 13:32:00 23 July 1997


Misconceptions:

 

None


Related Commands:

 

clock timezone

 


� Cisco Systems, Inc. 2001, 2002, 2003
World Wide Education

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)