DGS-6604
m
clock timezone
CLI Reference Guide
120
clock timezone
Use the command to set the time zone for display purpose. To set the time to
Coordinated Universal Time (UTC), use the no form of this command.
clock timezone {+|-}
HOURS-OFFSET
[
MINUTES-OFFSET
]
no clock timezone
Default
UTC
Command Mode
Global configuration
Usage Guideline
The time obtained by SNTP server refers to the UTC time. The local time will be
calculated based on UTC time, time zone, and the daylight saving configuration.
Example
The following example shows how to set the time zone to Pacific Standard Time
(PST), which is 8 hours behind UTC:
Verify the settings by entering the
show clock
command.
Syntax Description
+|-
‘+’ means time to be added to the UTC; ‘-’ means time to be subtracted from the
UTC.
HOURS-OFFSET
Hours difference from UTC.
MINUTES-OFFSET
(Optional) Minutes difference from UTC.
Switch# configure terminal
Switch(config)# clock timezone - 8
Switch(config)# end