Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

cal(1)  —  Commands

NAME

cal − Displays a calendar

SYNOPSIS

cal [ [month] year ]

DESCRIPTION

The cal command writes to standard output a Gregorian calendar for the specified year or month. 

The month argument names the month for which you want the calendar.  It can be a number between 1 and 12 for January through December, respectively.  If month is not specified, cal uses the current month. 

The year argument names the year for which you want the calendar.  Because cal can display a calendar for any year from 1 to 9999, enter the full year rather than just the last two digits.  If year is not specified, cal uses the current year. 

For historical reasons, the cal command’s Gregorian calendar is discontinuous. The display for September 1752 (cal 9 1752) jumps from Wednesday the 2nd to Thursday the 14th. 

The cal command checks the LC_TIME environment variable and uses the correct headers for the current locale.  If LC_TIME is not set, cal checks the value of LANG.  If neither variable is set, you receive English headers.  The appropriate files are in /usr/lib/nls/loc. 

EXAMPLES

To display a calendar for February 1990, enter:

cal 2 1990

To display a calendar for the year 84 A.D., enter:

cal 84

FILES

/usr/lib/nls/loc/localeConfiguration files. 

RELATED INFORMATION

Command and Shell User’s Guide. 

Files: locale (4). 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026