3.1.5 Time Configuration

Configure unit local time zone and daylight saving.

Use this command to configure time zone.

Command Syntax:

clock timezone <word_var> <hour_var> [ <minute_var> [ <subtype_var> ] ]
Table 3-13. Command Description

Argument

Description

Parameter

<word_var>

Name of time zone up to 16 characters. Use ‘‘ for null input

< hour_var >

Hours offset from UTC -23-23

<minute_var>

Minutes offset from UTC 0-59

<subtype_var>

Sub type of time zone 0-9

Default

(UTC) Coordinated Universal Time

Mode

Global Configuration mode

Usage

Specify the time zone and offsets from UTC. To return to the default, use the ‘no’ form of the command.

Example

Example 1:

Configure Eastern time zone with −05:00 from UTC.

(config)#clock timezone Eastern -05 0

Use this command to configure daylight saving time.

Command Syntax:

clock summer-time <word16> date [ <start_month_var> <start_date_var> <start_year_var> <start_hour_var> <end_month_var> <end_date_var> <end_year_var> <end_hour_var> [ <offset_var> ] ]
clock summer-time <word16> recurring [ <start_week_var> <start_day_var> <start_month_var> <start_hour_var> <end_week_var> <end_day_var> <end_month_var> <end_hour_var> [ <offset_var> ] ]
Table 3-14. Command Description

Argument

Description

Parameter

<word16>

Name of time zone in summer up to 16 characters. Use ‘‘ for null input

<start_month_var>

Month to start (1–12)

<start_date_var>

Date to start (1–31)

<start_year_var>

Year to start (2000–2097)

<start_hour_var>

Time to start (hh:mm)

<end_month_var>

Month to end (1–12)

<end_date_var>

Date to end (1–31)

<end_year_var>

Year to end (2000–2097)

<end_hour_var>

Time to end (hh:mm)

<offset_var>

Offset to add in minutes (1–1439)

<start_week_var>

Week number to start (1–5)

<start_day_var>

Weekday to start (1–7)

<end_week_var>

Week number to end (1–5)

<end_day_var>

Weekday to end (1–7)

Default

Daylight saving time mode disabled

Mode

Global Configuration mode

Usage

Configure summer (daylight savings) time in absolute non-recurring mode (date) and recurring mode (recurring). To go back to the default, use the ‘no’ form of the command.

Example

Example 1:

Configure non-recurring Daylight Saving Time to start on March 10, 2019, at 2:00 AM and finish on November 3, 2019, at 2:00 AM.

(config)#clock summer-time ‘’ date 3 10 2019 02:00 11 3 2019 02:00