1 .\" Copyright (c) 1997 Wolfgang Helbig
2 .\" All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 .Nd displays a calendar and the date of Easter
51 .Op Fl s Ar country_code
63 .Op Fl H Ar yyyy-mm-dd
68 utility displays a simple calendar in traditional format and
70 offers an alternative layout, more options and the date of Easter.
71 The new format is a little cramped but it makes a year fit
73 If arguments are not specified,
74 the current month is displayed.
76 The options are as follows:
77 .Bl -tag -width indent
79 Turns off highlighting of today.
81 Display Julian Calendar, if combined with the
83 option, display date of Easter according to the Julian Calendar.
85 Display date of Easter (for western churches).
87 Display Julian days (days one-based, numbered from January 1).
93 is specified as a decimal number, it may be followed by the letter
97 to indicate the following or preceding month of that number,
100 Display date of Orthodox Easter (Greek and Russian
103 Print the country codes and switching days from Julian to Gregorian
104 Calendar as they are assumed by
106 The country code as determined from the local environment is marked
108 .It Fl s Ar country_code
109 Assume the switch from Julian to Gregorian Calendar at the date
114 tries to guess the switch date from the local environment or
115 falls back to September 2, 1752.
117 Britain and her colonies switched to the Gregorian Calendar.
119 Print the number of the week below each week column.
121 Display a calendar for the specified year.
123 Display the previous, current and next month surrounding today.
127 of months after the current month.
131 of months before the current month.
143 as the current date (for debugging of date selection).
144 .It Fl H Ar yyyy-mm-dd
147 as the current date (for debugging of highlighting).
150 A single parameter specifies the year (1\(en9999) to be displayed;
151 note the year must be fully specified:
155 display a calendar for 1989.
156 Two parameters denote the month and
157 year; the month is either a number between 1 and 12, or a full or
158 abbreviated name as specified by the current locale.
160 year default to those of the current system clock and time zone (so
162 will display a calendar for the month of August in the current
165 Not all options can be used together.
167 .Dq Li -3 -A 2 -B 3 -y -m 7
169 show me the three months around the seventh month, three before
170 that, two after that and the whole year.
172 will warn about these combinations.
174 A year starts on January 1.
176 Highlighting of dates is disabled if stdout is not a tty.
183 utility is compliant with the
184 X/Open System Interfaces option of the
190 as well as the ability to specify a month name as a single argument,
191 are extensions to that specification.
193 The week number computed by
195 is compliant with the
210 command and manual were written by
211 .An Wolfgang Helbig Aq Mt helbig@FreeBSD.org .
213 The assignment of Julian\(enGregorian switching dates to country
214 codes is historically naive for many countries.
216 Not all options are compatible and using them in different orders
217 will give varying results.
219 It is not possible to display Monday as the first day of the week with