Setting the System Clock Manually
Before you set the system clock, obtain the following information about your time zone:
- The name of the time zone
- The difference (offset) between the time zone and UTC
- The dates and times of transitions to and from summer time (daylight saving time)
- The difference between the standard time and summer time (daylight saving time)
The international Web site www.timeanddate.com contains information about time zones.
NOTE: Be sure to set the time zone (default is UTC) and summer time dates before you set the clock.
You can set the system clock at any time. This process involves the following steps:
clock set
- Use to set the time and date on your system manually.
- Use the following syntax for setting the time: HH:MM:SS. This is the current time in 24-hour formathours:minutes:seconds.
- There are two acceptable date forms for this command. Both produce the same display when you run the show clock command.
host1#clock set 08:12:42 12 March 2000host1#clock set 11:12:55 March 10 2000There is no no version. clock summer-time date
host1(config)#clock summer-time PDT date 1 April 200X 2:00 31 October 200X 2:00 60Use the no version to prevent automatic switching to summer time. clock summer-time recurring
- Use to set the clock to summer time at the same time each year.
- ExampleThis overrides the default settings for PDT,
host1(config)#clock summer-time PDT recurring first Sunday April 2:00 last Sunday October 2:00Use the no version to prevent automatic switching to summer time. clock timezone
host1(config)#clock timezone EST -5Use the no version to set the time zone to UTC, the default setting. show clock
- Use to display the system time and the date.
- Example 1Shows time source value when clock is manually configured
host1#show clock detailTUE JAN 23 2007 11:50:47 UTCtime source: manually entered by usertimezone: UTC (0 minutes from UTC)Example 2Shows time source value when clock is synchronized with NTP host1#show clock detailTUE JAN 23 2007 11:50:47 UTCtime source: Configured via NTPtimezone: UTC (0 minutes from UTC)