Configure the Time Zone
About this task
Configure the time zone to use an internal system clock to maintain accurate time. The time zone data in Linux includes daylight changes for all time zones up to the year 2038. You do not need to configure daylight savings.
The default time zone is Coordinated Universal Time (UTC).
Important
In October 2014, the government of Russia moved Moscow from UTC+4 into the UTC+3 time zone with no daylight savings.
Procedure
Example
Configure the system to use the time zone data file for Vevay:
Switch:1(config)# clock time-zone America Indiana Vevay
Variable Definitions
The following table defines parameters for the clock time-zone command.
Variable |
Value |
---|---|
WORD<1–10> |
Specifies a directory name or a time zone name in /usr/share/zoneinfo, for example, Africa, Australia, Antarctica, or US. To see a list of options, enter clock time-zone at the command prompt without variables. |
WORD<1–20> WORD<1–20> |
The first instance of WORD<1–20> is the area within the timezone. The value represents a time zone data file in /usr/share/zoneinfo/WORD<1–10>/, for example, Shanghai in Asia. The second instance of WORD<1–20>is the subarea. The value represents a time zone data file in /usr/share/zoneinfo/WORD<1–10>/WORD<1–20>/, for example, Vevay in America/Indiana. To see a list of options, enter clock time-zone at the command prompt without variables. |