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
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).
EXEC
Release | Modification | 10.0 | This command was introduced. |
---|
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.
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
Command | Description |
---|---|
calendar set | Sets the system calendar. |
clock read-calendar | Manually reads the calendar into the system clock. |
clock summer-time | Configures the system to automatically switch to summer time (daylight savings time). |
clock timezone | Sets the time zone for display purposes. |
Printed for apswan@ctr.ap.nic.in on Wed Mar 5 22:32:57 PST 2003
All material in this document copyright 2000 Cisco Systems, Inc. All rights reserved. No material may be reproduced or distributed without written permission of Cisco Systems, Inc.