CLI Reference Guide-R04

Table Of Contents
Chapter 4
| System Management Commands
Time
– 173 –
Command Mode
Global Configuration
Command Usage
In some countries or regions, clocks are adjusted through the summer months
so that afternoons have more daylight and mornings have less. This is known as
Summer Time, or Daylight Savings Time (DST). Typically, clocks are adjusted
forward one hour at the start of spring and then adjusted backward in autumn.
This command sets the summer-time time zone relative to the currently
configured time zone. To display a time corresponding to your local time when
summer time is in effect, you must indicate the number of minutes your
summer-time zone deviates from your regular time zone (that is, the offset).
Example
The following example sets a recurring 60 minute offset summer-time to begin on
the Friday of the 1st week of March at 01:59 hours and summer time to end on the
Saturday of the 2nd week of November at 01:59 hours.
Console(config)#clock summer-time MESZ recurring 1 friday march 01 59 2
saturday november 1 59 60
Console(config)#
Related Commands
show sntp (165)
clock timezone This command sets the time zone for the switchs internal clock.
Syntax
clock timezone name hour hours [minute minutes |
before-utc | after-utc]
name - Name of timezone, usually an acronym. (Range: 1-30 characters)
hours - Number of hours before/after UTC. (Range: -12 hours before UTC to
13 hours after UTC i.e. -12 to 13)
minute minutes - Number of minutes before/after UTC. (Range: 0-59
minutes)
before-utc - Sets the local time zone before (east) of UTC. (If hours is set to
a negative value this parameter cannot be used.)
after-utc - Sets the local time zone after (west) of UTC. (If hours is set to a
negative value this parameter cannot be used.)
Default Setting
None