< Home

display calendar

Function

The display calendar command displays the calendar of the current month or a specified month in a specified year.

Format

display calendar [ month [ year ] ]

Parameters

Parameter Description Value
month Specifies the month for which the calendar is displayed.
The value is a character string. The values and their meanings are as follows:
  • Jan: January
  • Feb: February
  • Mar: March
  • Apr: April
  • May: May
  • Jun: June
  • Jul: July
  • Aug: August
  • Sep: September
  • Oct: October
  • Nov: November
  • Dec: December
year Specifies the year for which the calendar is displayed. The value is an integer that ranges from 2000 to 2099.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After configuring the current date and time on the switch using the clock datetime command, you can run the display calendar command to view calendar information.

If no month or year is specified, the calendar of the current month is displayed by default. If only month but not year is specified, the calendar of the specified month in the current year is displayed.

Example

# Display the calendar of the current month.

<HUAWEI> display calendar
      November    2012
 Sun Mon Tue Wed Thu Fri Sat
                   1   2   3
   4   5   6   7   8   9  10
  11  12  13  14  15  16  17
  18  19  20  21  22  23  24
  25  26  27  28  29  30
 Today is 16 November 2012.

# Display the calendar of May 2008.

<HUAWEI> display calendar May 2008
        May    2008
 Sun Mon Tue Wed Thu Fri Sat
                   1   2   3
   4   5   6   7   8   9  10
  11  12  13  14  15  16  17
  18  19  20  21  22  23  24
  25  26  27  28  29  30  31
 Today is 16 November 2012.
Table 1 Description of the display calendar command output

Item

Description

Sun

Sunday

Mon

Monday

Tue

Tuesday

Wed

Wednesday

Thu

Thursday

Fri

Friday

Sat

Saturday

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