Time Zone Commands
Use these commands to configure system time and date, time zone, and summer time.
Use the time zone commands to configure system time and date, time zone, and summer time (that is, daylight saving time). Summer time can be recurring or non-recurring.
clock set
M4250
M4350
This command sets the system time and date.
| Format |
|
| Mode | Global Config |
| Parameter | Description |
|---|---|
| hh:mm:ss | Enter the current system time in 24-hour format in hours, minutes, and seconds. The range is hours: 0 to 23, minutes: 0 to 59, seconds: 0 to 59. |
| mm/dd/yyyy | Enter the current system date in the format month, day, year. The range for month is 1 to 12. The range for the day of the month is 1 to 31. The range for year is 2010 to 2079. |
Command example:
(NETGEAR Switch) (Config)# clock set 03:17:00
(NETGEAR Switch) (Config)# clock set 11/01/2011
clock summer-time date
M4250
M4350
Use the clock summer-time date command to set the summer-time offset to Coordinated Universal Time (UTC). If the optional parameters are not specified, they are read as either 0 or \0, as appropriate.
| Format | clock summer-time date {date month year hh:mm date month year hh:mm}[offset offset] [zone acronym] |
| Mode | Global Config |
| Parameter | Description |
|---|---|
| date | Day of the month. Range is 1 to 31. |
| month | Month. Range is the first three letters by name; jan, for example. |
| year | Year. The range is 2000 to 2097. |
| hh:mm | Time in 24-hour format in hours and minutes. The range is hours: 0 to 23, minutes: 0 to 59. |
| offset | The number of minutes to add during the summertime. The range is 1 to 1440. |
| acronym | The acronym for the summer-time to be displayed when summertime is in effect. Up to four characters are allowed. |
Command example:
(NETGEAR Switch) (Config)# clock summer-time date 1 nov 2011 3:18 2 nov 2011 3:18
(NETGEAR Switch) (Config)# clock summer-time date 1 nov 2011 3:18 2 nov 2011 3:18 offset
120 zone INDA
clock summer-time recurring
M4250
M4350
This command sets the summer-time recurring parameters.
| Format | clock summer-time recurring {week day month hh:mm week day month hh:mm} [offset offset] [zone acronym] |
| Mode | Global Config |
| Parameter | Description |
|---|---|
| EU | The system clock uses the standard recurring summer time settings used in countries in the European Union. |
| USA | The system clock uses the standard recurring daylight saving time settings used in the United States. |
| week | Week of the month. The range is 1 to 5, first, last. |
| day | Day of the week. The range is the first three letters by name; sun, for example. |
| month | Month. The range is the first three letters by name; jan, for example. |
| hh:mm | Time in 24-hour format in hours and minutes. The range is hours: 0 to 23, minutes: 0 to 59. |
| offset | The number of minutes to add during the summertime. The range is 1 to 1440. |
| acronym | The acronym for the summertime to be displayed when summertime is in effect. Up to four characters are allowed. |
Command example:
(NETGEAR Switch) (Config)# clock summer-time recurring 2 sun nov 3:18 2 mon nov 3:18
(NETGEAR Switch) (Config)# clock summer-time recurring 2 sun nov 3:18 2 mon nov 3:18
offset 120 zone INDA
no clock summer-time
This command disables the summer time settings.
| Format | no clock summer-time |
| Mode | Global Config |
Command example:
(NETGEAR Switch) (Config)# no clock summer-time
clock timezone
M4250
M4350
Use this command to set the offset to Coordinated Universal Time (UTC). If the optional parameters are not specified, they will be read as either 0 or \0 as appropriate.
| Format | clock timezone {hours} [minutes minutes] [zone acronym] |
| Mode | Global Config |
| Parameter | Description |
|---|---|
| hours | Hours difference from UTC. The range is -12 to +13. |
| minutes | Minutes difference from UTC. The range is 0 to 59. |
| acronym | The acronym for the time zone. The range is up to four characters. |
Command example:
(NETGEAR Switch) (Config)# clock timezone 5 minutes 30 zone INDA
no clock timezone
Use this command to reset the time zone settings.
| Format | no clock timezone |
| Mode | Global Config |
Command example:
(NETGEAR Switch) (Config)# no clock timezone
show clock
M4250
M4350
Use this command to display the time and date from the system clock.
| Format | show clock |
| Mode | Privileged EXEC |
Command example:
(NETGEAR Switch) # show clock
15:02:09 (UTC+0:00) Nov 1 2011
No time source
Command example:
(NETGEAR Switch) # show clock
10:55:40 INDA(UTC+7:30) Nov 1 2011
No time source
show clock detail
M4250
M4350
Use this command to display the detailed system time along with the time zone and the summertime configuration.
| Format | show clock detail |
| Mode | Privileged EXEC |
Command example:
(NETGEAR Switch) # show clock detail
15:05:24 (UTC+0:00) Nov 1 2011
No time source
Time zone:
Acronym not configured
Offset is UTC+0:00
Summertime:
Summer-time is disabled
Command example:
(NETGEAR Switch) # show clock detail
10:57:57 INDA(UTC+7:30) Nov 1 2011
No time source
Time zone:
Acronym is INDA
Offset is UTC+5:30
Summertime:
Acronym is INDA
Recurring every year
Begins on second Sunday of Nov at 03:18
Ends on second Monday of Nov at 03:18
Offset is 120 minutes
Summer-time is in effect.