1CAL(1) BSD General Commands Manual CAL(1)
2
4 cal — displays a calendar
5
7 cal [-smjy13] [[[day] month] year]
8
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.
18
19 -m Display Monday as the first day of the week.
20
21 -j Display Julian dates (days one-based, numbered from January 1).
22
23 -y Display a calendar for the current year.
24
25 -V Display version information and exit.
26
27 A single parameter specifies the year (1 - 9999) to be displayed; note
28 the year must be fully specified: “cal 89” will not display a calendar
29 for 1989. Two parameters denote the month (1 - 12) and year. Three
30 parameters denote the day (1-31), month and year, and the day will be
31 highlighted if the calendar is displayed on a terminal. If no parameters
32 are specified, the current month's calendar is displayed.
33
34 A year starts on Jan 1. The first day of the week is determined by the
35 locale.
36
37 The Gregorian Reformation is assumed to have occurred in 1752 on the 3rd
38 of September. By this time, most countries had recognized the reforma‐
39 tion (although a few did not recognize it until the early 1900's.) Ten
40 days following that date were eliminated by the reformation, so the cal‐
41 endar for that month is a bit unusual.
42
44 A cal command appeared in Version 6 AT&T UNIX.
45
47 The cal command is part of the util-linux-ng package and is available
48 from ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/.
49
50BSD June 6, 1993 BSD