< 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 Displays the calendar of the specified month.
The value is a string of characters. All possible 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 Displays the calendar of the specified year. The value is an integer ranging from 2000 to 2099.

Views

User view

Default Level

1: Monitoring level

Usage Guidelines

If no month and year are specified, the calendar of the current month is displayed by default.

If only the month is specified, the calendar of the specified month in this year is displayed.

Example

# Display the calendar of the current month.

<sysname> display calendar
      December    2014
 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 2 December 2014.

# Display the calendar of the specified month (April) in this year.

<sysname> display calendar Apr
         April    2014
 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 2 December 2014.

# Display the calendar of the specified month (May) in the specified year (2008).

<sysname> 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 2 December 2014.
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 >