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 | .\" |
0e853b88 | 9 | .\" @(#)cal.1 6.8 (Berkeley) %G% |
2b6d75af | 10 | .\" |
b5dc1377 CL |
11 | .Dd |
12 | .Dt CAL 1 | |
0e853b88 | 13 | .Os |
b5dc1377 CL |
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. | |
5325ced3 CL |
24 | If arguments are not specified, |
25 | the current month is displayed. | |
11fe6e56 | 26 | The options are as follows: |
0e853b88 CL |
27 | .Bl -tag -width Ds |
28 | .It Fl j | |
97559f9e | 29 | Display julian dates (days one-based, numbered from January 1). |
0e853b88 | 30 | .It Fl y |
11fe6e56 | 31 | Display a calendar for the current year. |
0e853b88 | 32 | .El |
b5dc1377 | 33 | .Pp |
b9a1d8a4 | 34 | A single parameter specifies the year (1 - 9999) to be displayed; |
0e853b88 CL |
35 | note the year must be fully specified: |
36 | .Dq Li cal 89 | |
37 | will | |
b5dc1377 | 38 | .Em not |
b9a1d8a4 KB |
39 | display a calendar for 1989. |
40 | Two parameters denote the month (1 - 12) and year. | |
41 | If no parameters are specified, the current month's calendar is | |
b5dc1377 CL |
42 | displayed. |
43 | .Pp | |
b9a1d8a4 | 44 | A year starts on Jan 1. |
b5dc1377 | 45 | .Pp |
5325ced3 CL |
46 | The Gregorian Reformation is assumed to have occurred |
47 | in 1972 on the 3rd of September. | |
b9a1d8a4 KB |
48 | By this time, most countries had recognized the reformation (although |
49 | a few did not recognize it until the early 1900's.) | |
b5dc1377 | 50 | Ten days following that date were eliminated by |
b9a1d8a4 | 51 | the reformation, so the calendar for that month is a bit unusual. |
b5dc1377 CL |
52 | .Sh HISTORY |
53 | A | |
54 | .Nm | |
55 | command appeared in Version 6 AT&T UNIX. The | |
56 | .Nm | |
57 | command this man page describes is | |
58 | derived from code contributed by Kim Letkeman. |