No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Fat AP and Cloud AP V200R010C00 Command Reference

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
display clock

display clock

Function

The display clock command displays the current date and clock setting.

Format

display clock

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

You can run the display clock command to view the system date and clock setting and adjust the setting if necessary.

Precautions

The system clock is set using the clock datetime, clock timezone, and clock daylight-saving-time commands.

  • If the three commands are not used, the original system clock is displayed after you run the display clock command.
  • You can use any combination of the three commands to configure the system time. Table 2-4 lists the formats of the configured time.
The table assumes that the original system time is 08:00:00 on January 1, 2010.
  • 1: indicates that the clock datetime command is used, in which the current time and date is date-time.
  • 2: indicates that the clock timezone command is used, in which the time zone parameter is set and the time offset is zone-offset.
  • 3: indicates that the clock daylight-saving-time command is used, in which the DST parameters are set and the time offset is offset.
  • [1]: indicates that the clock datetime command is optional.
Table 2-4  System clock setting examples

Action

Configured System Time

Example

1

date-time

Command: clock datetime 8:0:0 2011-11-12

Configured system time:

2011-11-12 08:00:02
Saturday
Time Zone(Default Zone Name) : UTC+00:00:00

2

Original system time ± zone-offset

Command: clock timezone BJ add 8

Configured system time:

2010-01-01 16:00:27
Friday
Time Zone(BJ) : UTC+08:00:00

1, 2

date-time ± zone-offset

Commands: clock datetime 8:0:0 2011-11-12 and clock timezone BJ add 8

Configured system time:

2011-11-12 16:00:17
Saturday
Time Zone(BJ) : UTC+08:00:00

[1], 2, 1

date-time

Commands: clock timezone NJ add 8 and clock datetime 9:0:0 2011-11-12

Configured system time:

2011-11-12 09:00:03
Saturday
Time Zone(NJ) : UTC+08:00:00

3

If the original system time is not in the DST segment, the original system time is displayed.

Command: clock daylight-saving-time BJ one-year 6:0 2011-8-1 6:0 2011-10-01 1

Configured system time:

2010-01-01 08:00:51
Friday
Time Zone(Default Zone Name) : UTC+00:00:00
Daylight saving time :
         Name        : BJ
         Repeat mode : one-year
         Start year  : 2011
         End year    : 2011
         Start time  : 08-01 06:00:00
         End time    : 10-01 06:00:00
         Saving time : 01:00:00

If the original system time is in the DST segment, the configured system time is the original system time plus offset.

Command: clock daylight-saving-time BJ one-year 6:0 2010-1-1 6:0 2010-9-1 2

Configured system time:

2010-01-01 10:00:08 DST
Friday
Time Zone(BJ) : UTC+00:00:00
Daylight saving time :
         Name        : BJ
         Repeat mode : one-year
         Start year  : 2010
         End year    : 2010
         Start time  : 01-01 06:00:00
         End time    : 09-01 06:00:00
         Saving time : 02:00:00 

1, 3

If date-time is not in the DST segment, the configured system time is date-time.

Commands: clock datetime 9:0:0 2011-11-12 and clock daylight-saving-time BJ one-year 6:0 2012-8-1 6:0 2012-10-01 1

Configured system time:

2011-11-12 09:00:26
Saturday
Time Zone(Default Zone Name) : UTC+00:00:00
Daylight saving time :
         Name        : BJ
         Repeat mode : one-year
         Start year  : 2012
         End year    : 2012
         Start time  : 08-01 06:00:00
         End time    : 10-01 06:00:00
         Saving time : 01:00:00 

If date-time is in the DST segment, the configured system time is date-time+offset.

Commands: clock datetime 9:0:0 2011-11-12 and clock daylight-saving-time BJ one-year 9:0 2011-11-12 6:0 2011-12-01 2

Configured system time:

2011-11-12 11:02:21 DST
Saturday
Time Zone(BJ) : UTC+00:00:00
Daylight saving time :
         Name        : BJ
         Repeat mode : one-year
         Start year  : 2011
         End year    : 2011
         Start time  : 11-12 09:00:00
         End time    : 12-01 06:00:00
         Saving time : 02:00:00  

[1], 3, 1

If date-time is not in the DST segment, the configured system time is date-time.

Commands: clock daylight-saving-time BJ one-year 6:0 2012-8-1 6:0 2012-10-01 1 and clock datetime 9:0 2011-11-12

Configured system time:

2011-11-12 09:00:02
Saturday
Time Zone(Default Zone Name) : UTC+00:00:00
Daylight saving time :
         Name        : BJ
         Repeat mode : one-year
         Start year  : 2012
         End year    : 2012
         Start time  : 08-01 06:00:00
         End time    : 10-01 06:00:00
         Saving time : 01:00:00 

If date-time is in the DST segment, the configured system time is date-time.

Commands: clock daylight-saving-time BJ one-year 1:0 2011-1-1 1:0 2011-9-1 2 and clock datetime 3:0 2011-1-1

Configured system time:

2011-01-01 03:00:19 DST
Saturday
Time Zone(BJ) : UTC+00:00:00
Daylight saving time :
         Name        : BJ
         Repeat mode : one-year
         Start year  : 2011
         End year    : 2011
         Start time  : 01-01 01:00:00
         End time    : 09-01 01:00:00
         Saving time : 02:00:00

2, 3 or 3, 2

If the result of original system time ± zone-offset is not in the DST segment, the configured system time is equal to the original system time ± zone-offset.

Commands: clock timezone BJ add 8 and clock daylight-saving-time BJ one-year 6:0 2011-1-1 6:0 2011-9-1 2

Configured system time:

2010-01-01 16:01:29
Friday
Time Zone(BJ) : UTC+08:00:00
Daylight saving time :
         Name        : BJ
         Repeat mode : one-year
         Start year  : 2011
         End year    : 2011
         Start time  : 01-01 06:00:00
         End time    : 09-01 06:00:00
         Saving time : 02:00:00

If the result of original system time ± zone-offset is in the DST segment, the configured system time is equal to the original system time ± zone-offset ± offset.

Commands: clock daylight-saving-time BJ one-year 1:0 2010-1-1 1:0 2010-9-1 2 and clock timezone BJ add 8

Configured system time:

2010-01-01 18:05:31 DST
Friday
Time Zone(BJ) : UTC+08:00:00
Daylight saving time :
         Name        : BJ
         Repeat mode : one-year
         Start year  : 2010
         End year    : 2010
         Start time  : 01-01 01:00:00
         End time    : 09-01 01:00:00
         Saving time : 02:00:00

1, 2, 3 or 1, 3, 2

If the value of date-time ± zone-offset is not in the DST segment, the configured system time is equal to date-time ± zone-offset.

Commands: clock datetime 8:0:0 2011-11-12, clock timezone BJ add 8, and clock daylight-saving-time BJ one-year 6:0 2012-1-1 6:0 2012-9-1 2

Configured system time:

2011-11-12 08:01:40
Saturday
Time Zone(BJ) : UTC+08:00:00
Daylight saving time :
         Name        : BJ
         Repeat mode : one-year
         Start year  : 2012
         End year    : 2012
         Start time  : 01-01 06:00:00
         End time    : 09-01 06:00:00
         Saving time : 02:00:00

If the value of date-time ± zone-offset is in the DST segment, the configured system time is equal to date-time ± zone-offset + offset.

Commands: clock datetime 8:0:0 2011-1-1, clock daylight-saving-time BJ one-year 6:0 2011-1-1 6:0 2011-9-1 2 and clock timezone BJ add 8

Configured system time:

2011-01-01 10:00:43 DST
Saturday
Time Zone(BJ) : UTC+08:00:00
Daylight saving time :
         Name        : BJ
         Repeat mode : one-year
         Start year  : 2011
         End year    : 2011
         Start time  : 01-01 06:00:00
         End time    : 09-01 06:00:00
         Saving time : 02:00:00

[1], 2, 3, 1 or [1], 3, 2, 1

If date-time is not in the DST segment, the configured system time is date-time.

Commands: clock daylight-saving-time BJ one-year 6:0 2012-1-1 6:0 2012-9-1 2, clock timezone BJ add 8, and clock datetime 8:0:0 2011-11-12

Configured system time:

2011-11-12 08:00:03
Saturday
Time Zone(BJ) : UTC+08:00:00
Daylight saving time :
         Name        : BJ
         Repeat mode : one-year
         Start year  : 2012
         End year    : 2012
         Start time  : 01-01 06:00:00
         End time    : 09-01 06:00:00
         Saving time : 02:00:00

If date-time is in the DST segment, the configured system time is date-time.

Commands: clock timezone BJ add 8, clock daylight-saving-time BJ one-year 1:0 2011-1-1 1:0 2011-9-1 2, and clock datetime 3:0:0 2011-1-1

Configured system time:

2011-01-01 03:00:03 DST
Saturday
Time Zone(BJ) : UTC+08:00:00
Daylight saving time :
         Name        : BJ
         Repeat mode : one-year
         Start year  : 2011
         End year    : 2011
         Start time  : 01-01 01:00:00
         End time    : 09-01 01:00:00
         Saving time : 02:00:00

Example

# Display the current system date and time.

<Huawei> display clock
2012-05-15 20:34:53
Tuesday
Time Zone(Default Zone Name) : UTC+00:00:00
Daylight saving time :
         Name        : BJ
         Repeat mode : one-year
         Start year  : 2012
         End year    : 2012
         Start time  : 08-01 06:00:00
         End time    : 10-01 06:00:00
         Saving time : 01:00:00 
Table 2-5  Description of the display clock command output

Item

Description

Time Zone

Time zone.

Daylight saving time

DST.

Name

DST name.

Repeat mode

DST mode.
  • one-year: absolute DST
  • repeating: periodic DST

Start year

Year from which the DST takes effect.

End year

Year when the DST becomes ineffective.

Start time

Time when the DST takes effect.

End time

Time when the DST becomes ineffective.

Saving time

Storage time.

Translation
Download
Updated: 2019-11-21

Document ID: EDOC1100064352

Views: 208281

Downloads: 122

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next