clock summer-time
clock
summer-timeclock summer-time
[
zone
{
australia
australia-time
|
europe
europe-time
|
gmt
gmt-time
|
us
us-time
}
start
mm-dd-yy
hh:mm:ss
end
mm-dd-yy
hh:mm:ss
]
[
offset
offset-value
]
clock
summer-time
[
zone
{
australia
australia-time
|
europe
europe-time
|
gmt
gmt-time
|
us
us-time
}
recurring start
dayofweek
week
week-number
month
month-number
end
dayofweek
week
week-number
month
month-number
]
{hh:mm:ss
|
offset
offset-value
}
no clock summer-timeBy default, summer time (daylight savings time) is not configured on the device. The default start and end time of daylight saving time will depend on the longitude of the country. When offset is not specified, a default offset value of 60 minutes is used. When the time (hh:mm:ss) for the change to occur is not specificed, the default is set at 2:00am. See the Usage Guidelines section for details.
- australia australia-time
- Specifies the Australia time zone. The value can be one of the following: cst, est, wst.
- europe europe-time
- Specifies the Europe time zone. The value can be one of the following: bst, cest, cet, eest, eet, gmt, ist, msd, msk, west, wet.
- gmt gmt-time
- Specifies the GMT time zone.
Greenwich Mean Time (GMT) CLI Values
Time Zone Description gmt+00 GMT time zone (United Kingdom) (UTC) gmt+01 GMT time zone (France, Germany) (UTC+1 hour) gmt+02 GMT time zone (Eastern Europe, South Africa)(UTC+2 hours) gmt+03 GMT time zone (UTC+3 hours) gmt+03:30 GMT time zone (UTC+3:30 hours) gmt+04 GMT time zone (UTC+4 hours) gmt+04:30 GMT time zone (UTC+4:30 hours) gmt+05 GMT time zone (UTC+5 hours) gmt+05:30 GMT time zone (India) (UTC+5:30 hours) gmt+06 GMT time zone (UTC+6 hours) gmt+06:30 GMT time zone (UTC+6:30 hours) gmt+07 GMT time zone (UTC+7 hours) gmt+08 GMT time zone (China, Hong Kong, Taiwan) (UTC+8 hours) gmt+09 GMT time zone (Japan, Korea) (UTC+9 hours) gmt+09:30 GMT time zone (UTC+9:30 hours) gmt+10 GMT time zone (Australia) (UTC+10 hours) gmt+10:30 GMT time zone (UTC+10:30 hours) gmt+11 GMT time zone (UTC+11 hours) gmt+11:30 GMT time zone (UTC+11:30 hours) gmt+12 GMT time zone (UTC+12 hours) gmt-01 GMT time zone (UTC-1 hour) gmt-02 GMT time zone (UTC-2 hours) gmt-03 GMT time zone (UTC-3 hours) gmt-03:30 GMT time zone (UTC-3:30 hours) gmt-04 GMT time zone (UTC-4 hours) gmt-05 GMT time zone (UTC-5 hours) gmt-06 GMT time zone (UTC-6 hours) gmt-07 GMT time zone (UTC-7 hours) gmt-08 GMT time zone (UTC-8 hours) gmt-08:30 GMT time zone (UTC-8:30 hours) gmt-09 GMT time zone (UTC-9 hours) gmt-09:30 GMT time zone (UTC-9:30 hours) gmt-10 GMT time zone (UTC-10 hours) gmt-11 GMT time zone (UTC-11 hours) gmt-12 GMT time zone (UTC-12 hours) - us us-time
- Specifies the US time zone. The value can be one of the following: alaska, aleutian, arizona, central, east-indiana, eastern, hawaii, michigan, mountain, pacific, samoa.
- start mm-dd-yy hh:mm:ss
- Specifies the summer-time start date and time for the local clock time in month, day, and year and hours, minutes, and seconds.
- end mm-dd-yy hh:mm:ss
- Specifies the summer-time end date and time for the local clock time in month, day, and year and hours, minutes, and seconds.
- recurring start dayofweek week week-number month month-number
- Specifies the recurring summer-time start
date for the local clock time as day of the week, week number, and month
number.
- enddayofweek week week-number month month-number
- Specifies the recurring summer-time end date for the local clock time as day of the week, week number, and month number.
-
Global configuration mode
The clock summer-time
command without any parameters sets the default daylight savings time for the
corresponding time zone. Use this command with specific parameters if you need
to
manually configure the local clock summer-time and time zone values. Use the
clock summer-time command with the
recurring parameters to perform a one-time manual
configuration of values to automatically trigger biannual device clock changes
corresponding to daylight saving time.
By default, daylight saving time is implemented according to time zone in three sets of dates and times:
- USA—Summer time starts at 2:00am on the second Sunday of March and ends at 2:00am on the first Sunday of November.
- Europe—Summer time starts at 2:00am on the last Sunday of March and ends at 2:00am on the last Sunday of October.
- Rest of the world—Summer time starts at 2:00am on the last Sunday of March and ends at 2:00am on the last Sunday of October, but some countries have different start and end dates depending on the longitude.
When the configured time zone on the device is
different from the existing time zone due to a configuration of the time zone
using
the clock
summer-time command,you are prompted to confirm the configuration
change with a yes or no.
a y/n option appears.
The following example sets the local device clock that resides in the US Pacific time zone to the US Mountain time zone and set the daylight saving time for that year, and you are asked to confirm of this change with a y/n prompt.
device# configure terminal Router(config)# clock summer-time zone us mountain start 10-30-16 02:00:00 end 02-27-17 02:00:00 offset 60 You are about to change the timezone config do you want to continue yes or no (enter 'y' or 'n'): y
The following example sets the recurring daylight saving time in the US Pacific time zone and then shows the details of the clock.
device# configure terminal device(config)# clock summer-time zone us pacific recuring start thursday week 2 month 1 end tuesday week 3 month 7 offset 40 device(config)# show clock detail 17:39:22.690 Pacific Thu Feb 08 2024 Time source is Set Clock Summer time starts 02:00:00 Pacific Thu Jan 11 2024 offset 40 mins Summer time ends 02:00:00 Pacific Tue Jul 16 2024 offset 40 mins
| Release version | Command history |
|---|---|
| 08.0.50 | This command was modified to add subsets of time zones specific to Australia and Europe. |
| 10.0.20 | This command was modified to add the recurring option. |