Command Reference SYS Commands
5.5 clock timezone
Use this command to set the time zone.
clock timezone [ name hours-offset [ minutes-offset ] ]
Use this command to remove the time zone settings.
no clock timezone
Time zone name. It can only be a letter between A and Z or between a and
z, which is not case sensitive. The name contains 3 to 31 characters.
Hours of time difference. It indicates whether the time is faster or smaller
than the hardware UTC time. The range is from -12 to 12. The negative
digit indicates that the time is slower than the hardware time, while the
positive digit indicates that the time is faster than the hardware time.
If the time is slower than the UTC time, add "-" before
hours-offset
.
Minutes of time difference. The range is from 0 to 59.
Global configuration mode
The following example sets the time zone name to CST. The software time is 8 hours faster than the
hardware time.
Ruijie(config)# clock timezone CST 8
Set time zone name: CST (GMT+08:00)
Ruijie# show clock
18:00:17 CST Wed, Dec 5, 2012
The following example sets the time zone name TZA. The software time is 06:13 slower than the hardware
time.
Ruijie(config)# clock timezone TZA -6 13
Set time zone name: TZA (GMT-06:13)
The following example removes the time zone settings.
Ruijie(config)# no clock timezone