cal — Display a Calendar

Synopsis

/usr/bin/cal [[month] year] 

Description

The cal command writes a Gregorian calendar to standard output. If you specify a four-digit year operand, a calendar for that year is written. If you specify no operands, a calendar for the current month is written. You can display a calendar for any month of any year by specifying the month, as a digit from 1 to 12, followed by any four-digit year up to 9999.

An unusual calendar is printed for September 1752. That is the month 11 days were skipped to make up for lack of leap year adjustments. To see this calendar, type:

castle% cal 9 1752
					

The command cal 83 refers to the year 83, not 1983. The year is always considered to start in January.

Operands

month Specify ...

Get Solaris™ 7 Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.