The following is a configuration task list for configuring the time and date settings.
You can change the order of the month and day parameters to enter the time and date as time day month year. You cannot delete the software clock
The software clock runs only when the software is up. The clock restarts, based on the hardware clock, when the switch reboots.
To set the software clock, use the following command.
Command |
Purpose |
console# clock set |
Enter the time and calendar date to be set. time: enter the time in hours:minutes:seconds. For the hour variable, use the 24-hour format; for example, 17:15:00 is 5:15 pm. month: enter the name of one of the 12 months in English. You can enter the name of a day to change the order of the display to time day month year. day: enter the number of the day. The range is from 1 to 31. You can enter the name of a month to change the order of the display to time day month year. year: enter a four-digit number as the year. The range is from 1993 to 2035. |
Universal time coordinated (UTC) is the time standard based on the International Atomic Time standard, commonly known as Greenwich Mean time.
When determining system time, include the differentiator between UTC and your local time zone. For example, San Jose, CA is the Pacific Time zone with a UTC offset of -8.
To set the clock time zone, use the following command.
Command |
Purpose |
console# configure |
Enter configuration mode. |
Console(config)# clock timezone pacific -8 |
Enter the specific time zone needed. |
Console(conf)#01:40:19: %RPM0-P:CP %CLOCK-6-TIME CHANGE: Timezone configuration changed from "UTC 0 hrs 0 mins" to "Pacific -8 hrs 0mins" |
Switch response to time zone change. |
FTOS supports setting the system to daylight saving time once or on a recurring basis every year.
Set a date (and time zone) once, use to convert the switch to daylight saving time on a one-time basis.
To set the clock for daylight savings the following command.
Command |
Purpose |
console# configure |
Enter configuration mode. |
console(conf)# clock summer-time date [offset] |
Set Summer time clock. time-zone: enter the three-letter name for the time zone. This name displays in the show clock output. start-month: enter the name of tone of the 12 months in English. You can enter the name of a day to change the order of the display to time day month year. start-day: enter the number of the day. The range is from 1 to 31. You can enter the name of a month to change the order of the display to time day month year. start-year: enter a four-digit number as the year. The range is from 1993 to 2035. start-time: enter the time in hours:minutes. For the hour variable, use the 24-hour format; example, 17:15 is 5:15 pm. end-month: enter the name of one of the 12 months in English. You can enter the name of a day to change the order of the display to time day month year. end-day: enter the number of the day. The range is from 1 to 31. You can enter the name of a month to change the order of the display to time day month year. end-year: enter a four-digit number as the year. The range is from 1993 to 2035. end-time: enter the time in hours:minutes. For the hour variable, use the 24-hour format; example, 17:15 is 5:15 pm. offset: (OPTIONAL) enter the number of minutes to add during the summer-time period. The range is from 1 to1440. The default is 60 minutes. |
Set a date (and time zone) on which to convert the switch to daylight saving time on a specific day every year.
If you have already set daylight saving for a one-time setting, you can set that date and time as the recurring setting with the clock summer-time time-zone recurring command.
To set a recurring daylight saving time, use the following command.
Command |
Purpose |
console# configure |
Enter configuration mode. |
console(conf)# clock summer-time time-zone recurring start-week start-day start-month start-time end-week end-day end-month end-time [offset] |
Set Summer time clock. time-zone: enter the three-letter name for the time zone. This name displays in the show clock output. start-week: (OPTIONAL) enter one of the following as the week that daylight saving begins and then enter the values for start-day through end-time: start-month: enter the name of tone of the 12 months in English. You can enter the name of a day to change the order of the display to time day month year. start-day: enter the number of the day. The range is from 1 to 31. You can enter the name of a month to change the order of the display to time day month year. start-year: enter a four-digit number as the year. The range is from 1993 to 2035. start-time: enter the time in hours:minutes. For the hour variable, use the 24-hour format; example, 17:15 is 5:15 pm. end-week: if you entered a start-week, enter one of the following as the week that daylight saving ends. end-month: enter the name of one of the 12 months in English. You can enter the name of a day to change the order of the display to time day month year. end-day: enter the number of the day. The range is from 1 to 31. You can enter the name of a month to change the order of the display to time day month year. end-year: enter a four-digit number as the year. The range is from 1993 to 2035. end-time: enter the time in hours:minutes. For the hour variable, use the 24-hour format; example, 17:15 is 5:15 pm. offset: (OPTIONAL) enter the number of minutes to add during the summer-time period. The range is from 1 to 1440. The default is 60 minutes. |