cal Command Purpose Displays a calendar. Syntax cal [ Month ] [ Year ] Description The cal command writes to standard output a calendar for the specified year or month. The Month parameter names the month for which you want the calen- dar. It can be a number from 1 through 12 for January through December, respectively. If no Month is specified, the cal command defaults to the current month. The Year parameter names the year for which you want the calen- dar. Since the cal command can display a calendar for any year from 1 through 9999, enter the full year rather than just the last two digits. If no Year is specified, the cal command de- faults to the present year. The cal Command uses the appropriate file according to the locale setting. The National Language Support Overview for Programming in AIX Version 3.2 General Programming Concepts contains more in- formation on the LANG, LC_TIME, and LC_ALL environment variables. Exit Status This command returns the following exit values: 0 Successful completion. >0 An error occurred. Examples 1. To display a calendar for February, 1984 at your work station, enter: cal 2 1984 2. To print a calendar for 1984, enter: cal 1984 | qprt 3. To display a calendar for the year 84 A.D., enter: cal 84 Implementation Specifics This command is part of Extended Commands in BOS Extensions 1. Files /usr/bin/cal Contains the cal command. Related Information The Input and Output Redirection Overview in AIX Version 3.2 System User's Guide: Base and Devices. The National Language Support Overview for System Management in AIX Version 3.2 System Management Guide: Operating System and Devices. The calendar command. The National Language Support Overview for Programming in AIX Version 3.2 General Programming Concepts.