clock timezone zone hours_offset [minutes_offset]
In the preceding command, zone is the name of the time zone to be displayed when standard time is in effect, hours_offset is the hours offset from UTC, and minutes_offset are the minutes offset from UTC. The default time zone is UTC.
To set summer time (daylight savings time), use the following command:
clock summer-time zone recurring [week day month hh:mm week day month \
hh:mm [offset]]
In the preceding command, week is the week of the month, between 1 to 5, day is the day of the week, such as Sunday or Monday, month is the month, such as January or June, hh:mm is the time in 24-hour format, and offset is the number of minutes to add during summer time. The default for hh:mm
is 60. Summer time is disabled by default.
The following is an example of setting the time zone to US Eastern time with summer time enabled:
$ telnet raeth-ip
Connected to raeth-ip
Escape Character is 'CTRL+]'
User Access Verification
Password: password
raeth-ip> enable
Password: password
raeth-ip# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
raeth-ip(config)# clock timezone EST -5
raeth-ip(config)# clock summer-time EDT recurring
raeth-ip(config)# end
raeth-ip# write memory
Building configuration...
Compressed configuration from 6421 bytes to 2041 bytes[OK]
raeth-ip# show clock
12:03:43.516 EDT Wed May 12 2012