]>
Commit | Line | Data |
---|---|---|
d4a28ab0 CW |
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 | .\" Redistribution and use in source and binary forms, with or without | |
8 | .\" modification, are permitted provided that the following conditions | |
9 | .\" are met: | |
10 | .\" 1. Redistributions of source code must retain the above copyright | |
11 | .\" notice, this list of conditions and the following disclaimer. | |
12 | .\" 2. Redistributions in binary form must reproduce the above copyright | |
13 | .\" notice, this list of conditions and the following disclaimer in the | |
14 | .\" documentation and/or other materials provided with the distribution. | |
15 | .\" 3. Neither the name of the University nor the names of its contributors | |
16 | .\" may be used to endorse or promote products derived from this software | |
17 | .\" without specific prior written permission. | |
18 | .\" | |
19 | .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | |
20 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | |
21 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | |
22 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | |
23 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | |
24 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | |
25 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
26 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | |
27 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | |
28 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |
29 | .\" SUCH DAMAGE. | |
30 | .\" | |
31 | .\" @(#)cal.1 8.1 (Berkeley) 6/6/93 | |
32 | .\" | |
33 | .Dd June 6, 1993 | |
34 | .Dt CAL 1 | |
35 | .Os | |
36 | .Sh NAME | |
37 | .Nm cal | |
38 | .Nd displays a calendar | |
39 | .Sh SYNOPSIS | |
40 | .Nm cal | |
41 | .Op Fl mjy13 | |
42 | .Op [ Ar month ] Ar year | |
43 | .Sh DESCRIPTION | |
44 | .Nm Cal | |
45 | displays a simple calendar. | |
46 | If arguments are not specified, | |
47 | the current month is displayed. | |
48 | The options are as follows: | |
49 | .Bl -tag -width Ds | |
50 | .It Fl 1 | |
51 | Display single month output (use if cal was built with -3 as default to get | |
52 | older traditional output) | |
53 | .It Fl 3 | |
54 | Display prev/current/next month output (use if cal was built with traditional | |
55 | -1 as default to get newer improved output) | |
56 | .It Fl m | |
57 | Display Monday as the first day of the week. | |
58 | (The default is Sunday.) | |
59 | .It Fl j | |
60 | Display Julian dates (days one-based, numbered from January 1). | |
61 | .It Fl y | |
62 | Display a calendar for the current year. | |
63 | .El | |
64 | .Pp | |
65 | A single parameter specifies the year (1 - 9999) to be displayed; | |
66 | note the year must be fully specified: | |
67 | .Dq Li cal 89 | |
68 | will | |
69 | .Em not | |
70 | display a calendar for 1989. | |
71 | Two parameters denote the month (1 - 12) and year. | |
72 | If no parameters are specified, the current month's calendar is | |
73 | displayed. | |
74 | .Pp | |
75 | A year starts on Jan 1. | |
76 | .Pp | |
77 | The Gregorian Reformation is assumed to have occurred in 1752 on the 3rd | |
78 | of September. | |
79 | By this time, most countries had recognized the reformation (although a | |
80 | few did not recognize it until the early 1900's.) | |
81 | Ten days following that date were eliminated by the reformation, so the | |
82 | calendar for that month is a bit unusual. | |
83 | .Sh HISTORY | |
84 | A | |
85 | .Nm | |
86 | command appeared in Version 6 AT&T UNIX. |