35
35
.\" @(#)cal.1 8.1 (Berkeley) 6/6/93
42
.Nd displays a calendar
46
.Op [ [ Ar day ] Ar month ] Ar year
49
displays a simple calendar.
50
If arguments are not specified,
51
the current month is displayed.
52
The options are as follows:
37
.TH CAL 1 "June 2011" "util-linux" "User Commands"
39
cal \- display a calendar
42
[\fIoptions\fR] [[[\fIday\fR] \fImonth\fR] \fIyear\fR]
45
displays a simple calendar. If no arguments are specified, the current
49
\fB\-1\fR, \fB\-\-one\fR
55
50
Display single month output.
56
51
(This is the default.)
53
\fB\-3\fR, \fB\-\-three\fR
58
54
Display prev/current/next month output.
56
\fB\-s\fR, \fB\-\-sunday\fR
60
57
Display Sunday as the first day of the week.
59
\fB\-m\fR, \fB\-\-monday\fR
62
60
Display Monday as the first day of the week.
62
\fB\-j\fR, \fB\-\-julian\fR
64
63
Display Julian dates (days one-based, numbered from January 1).
65
\fB\-y\fR, \fB\-\-year\fR
66
66
Display a calendar for the current year.
68
\fB\-V\fR, \fB\-\-version\fR
68
69
Display version information and exit.
71
A single parameter specifies the year (1 - 9999) to be displayed;
72
note the year must be fully specified:
76
display a calendar for 1989.
71
\fB\-h\fR, \fB\-\-help\fR
72
Display help screen and exit.
74
A single parameter specifies the year (1 - 9999) to be displayed; note the
75
year must be fully specified:
77
will not display a calendar for 1989.
77
79
Two parameters denote the month (1 - 12) and year.
78
Three parameters denote the day (1-31), month and year,
79
and the day will be highlighted if the calendar is displayed on a terminal.
80
If no parameters are specified, the current month's calendar is
83
A year starts on Jan 1. The first day of the week is determined by the locale.
85
The Gregorian Reformation is assumed to have occurred in 1752 on the 3rd
87
By this time, most countries had recognized the reformation (although a
88
few did not recognize it until the early 1900's.)
89
Ten days following that date were eliminated by the reformation, so the
90
calendar for that month is a bit unusual.
94
command appeared in Version 6 AT&T UNIX.
81
Three parameters denote the day (1-31), month and year, and the day will be
82
highlighted if the calendar is displayed on a terminal. If no parameters are
83
specified, the current month's calendar is displayed.
85
A year starts on Jan 1. The first day of the week is determined by the
88
The Gregorian Reformation is assumed to have occurred in 1752 on the 3rd of
89
September. By this time, most countries had recognized the reformation
90
(although a few did not recognize it until the early 1900's). Ten days
91
following that date were eliminated by the reformation, so the calendar for
92
that month is a bit unusual.
94
A cal command appeared in Version 6 AT&T UNIX.
96
96
The cal command is part of the util-linux package and is available from
97
97
ftp://ftp.kernel.org/pub/linux/utils/util-linux/.