< Home

display clock

Function

The display clock command displays the current system date and time.

Format

display clock [ utc ]

Parameters

Parameter Description Value

utc

Indicates that the clock based on the Universal Time Coordinated (UTC) is displayed.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Using this command, you can check whether the system time is correct or needs to be modified.

If the parameter utc is selected, the UTC is displayed.

If you have set summer time with the clock daylight-saving-time command, you can use the display clock command to view information about summer time. If you have not set summer time, the display clock command displays no information about the summer time.

Example

# Display the current date and time in the system.

<sysname> display clock
2010-06-22 19:35:50
Tuesday
Time Zone(Default Zone Name) : UTC
Daylight saving time :
         Name        : utc
         Repeat mode : repeat
         Start year  : 2011
         End year    : 2012
         Start time  : 01-01 12:11:00
         End time    : 03-04 01:00:00
         Saving time : 01:00:00

# Display the UTC of the system.

<sysname> display clock utc
2014-12-16 08:35:06
Tuesday
Table 1 Description of the display clock command output

Item

Description

2010-06-22 19:35:50

Date and time

Tuesday

Tuesday

Time Zone

Time zone

UTC

Universal Time Coordinated

Daylight Saving Time

Sometimes called summer time

Name

Name of daylight saving time (DST)

Repeat mode

DST mode:
  • one-year: DST set for one year only
  • repeating: setting of DST repeated every year

Start year

Start year of DST

End year

End year of DST

Start time

Start time of DST

End time

End time of DST

Saving time

System saving time

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic