Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ cal(C) — OpenDesktop 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought


 cal(C)                          19 June 1992                          cal(C)


 Name

    cal - print a calendar

 Syntax

    cal [ [ month ] year ]

 Description

    The cal command prints a calendar for the specified year.  If a month is
    also specified, a calendar for that month only is printed.  If no argu-
    ments are specified, the current, previous, and following months are
    printed, along with the current date and time.  The year must be a number
    between 1 and 9999; month must be a number between 1 and 12 or enough
    characters to specify a particular month.  For example, May must be given
    to distinguish it from March, but S is sufficient to specify September.
    If only a month string is given, only that month of the current year is
    printed.

 Notes

    Beware that ``cal 84'' refers to the year 84, not 1984.

    The calendar produced is that for England and her colonies.  Note that
    England switched from the Julian to the Gregorian calendar in September
    of 1752, at which time eleven days were excised from the year.  To see
    the result of this switch, try ``cal 9 1752''.

 Standards conformance

    cal is conformant with:

    AT&T SVID Issue 2;
    and X/Open Portability Guide, Issue 3, 1989.


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