xref: /original-bsd/usr.bin/cal/cal.1 (revision 0842ddeb)
1.\" Copyright (c) 1989, 1990, 1993
2.\"	The Regents of the University of California.  All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" Kim Letkeman.
6.\"
7.\" %sccs.include.redist.man%
8.\"
9.\"     @(#)cal.1	8.2 (Berkeley) 04/28/95
10.\"
11.Dd
12.Dt CAL 1
13.Os
14.Sh NAME
15.Nm cal
16.Nd displays a calendar
17.Sh SYNOPSIS
18.Nm cal
19.Op Fl jy
20.Op Oo Ar month Oc Ar \ year
21.Sh DESCRIPTION
22.Nm Cal
23displays a simple calendar.
24If arguments are not specified,
25the current month is displayed.
26The options are as follows:
27.Bl -tag -width Ds
28.It Fl j
29Display julian dates (days one-based, numbered from January 1).
30.It Fl y
31Display a calendar for the current year.
32.El
33.Pp
34A single parameter specifies the year (1 - 9999) to be displayed;
35note the year must be fully specified:
36.Dq Li cal 89
37will
38.Em not
39display a calendar for 1989.
40Two parameters denote the month (1 - 12) and year.
41If no parameters are specified, the current month's calendar is
42displayed.
43.Pp
44A year starts on Jan 1.
45.Pp
46The Gregorian Reformation is assumed to have occurred in 1752 on the 3rd
47of September.
48By this time, most countries had recognized the reformation (although a
49few did not recognize it until the early 1900's.)
50Ten days following that date were eliminated by the reformation, so the
51calendar for that month is a bit unusual.
52.Sh HISTORY
53A
54.Nm
55command appeared in Version 6 AT&T UNIX.
56