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