1CAL(1)                    BSD General Commands Manual                   CAL(1)
2

NAME

4     cal — displays a calendar
5

SYNOPSIS

7     cal [-smjy13] [[month] year]
8

DESCRIPTION

10     Cal displays a simple calendar.  If arguments are not specified, the cur‐
11     rent month is displayed.  The options are as follows:
12
13     -1      Display single month output.  (This is the default.)
14
15     -3      Display prev/current/next month output.
16
17     -s      Display Sunday as the first day of the week.  (This is the
18             default.)
19
20     -m      Display Monday as the first day of the week.
21
22     -j      Display Julian dates (days one-based, numbered from January 1).
23
24     -y      Display a calendar for the current year.
25
26     A single parameter specifies the year (1 - 9999) to be displayed; note
27     the year must be fully specified: “cal 89” will not display a calendar
28     for 1989.  Two parameters denote the month (1 - 12) and year.  If no
29     parameters are specified, the current month's calendar is displayed.
30
31     A year starts on Jan 1.
32
33     The Gregorian Reformation is assumed to have occurred in 1752 on the 3rd
34     of September.  By this time, most countries had recognized the reforma‐
35     tion (although a few did not recognize it until the early 1900's.)  Ten
36     days following that date were eliminated by the reformation, so the cal‐
37     endar for that month is a bit unusual.
38

HISTORY

40     A cal command appeared in Version 6 AT&T UNIX.
41

OTHER VERSIONS

43     Several much more elaborate versions of this program exist, with support
44     for colors, holidays, birthdays, reminders and appointments, etc. For
45     example, try the cal from http://home.sprynet.com/~cbagwell/projects.html
46     or GNU gcal.
47
48BSD                              June 6, 1993                              BSD
Impressum