2 .\" SPDX-License-Identifier: BSD-2-Clause
4 .\" Copyright (c) 1997 Wolfgang Helbig
5 .\" All rights reserved.
7 .\" Redistribution and use in source and binary forms, with or without
8 .\" modification, are permitted provided that the following conditions
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.
16 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 .Nd displays a calendar and the date of Easter
54 .Op Fl s Ar country_code
66 .Op Fl H Ar yyyy-mm-dd
71 utility displays a simple calendar in traditional format and
73 offers an alternative layout, more options and the date of Easter.
74 The new format is a little cramped but it makes a year fit
76 If arguments are not specified,
77 the current month is displayed.
79 The options are as follows:
80 .Bl -tag -width indent
82 Turns off highlighting of today.
84 Display Julian Calendar, if combined with the
86 option, display date of Easter according to the Julian Calendar.
88 Display date of Easter (for western churches).
90 Display Julian days (days one-based, numbered from January 1).
92 Display Monday as the first day of the week in
100 is specified as a decimal number, it may be followed by the letter
104 to indicate the following or preceding month of that number,
107 Display date of Orthodox Easter (Greek and Russian
110 Print the country codes and switching days from Julian to Gregorian
111 Calendar as they are assumed by
113 The country code as determined from the local environment is marked
115 .It Fl s Ar country_code
116 Assume the switch from Julian to Gregorian Calendar at the date
121 tries to guess the switch date from the local environment or
122 falls back to September 2, 1752.
124 Britain and her colonies switched to the Gregorian Calendar.
126 Print the number of the week below each week column.
128 Display a calendar for the specified year.
130 Display the previous, current and next month surrounding today.
134 of months after the current month.
138 of months before the current month.
150 as the current date (for debugging of date selection).
151 .It Fl H Ar yyyy-mm-dd
154 as the current date (for debugging of highlighting).
157 A single parameter specifies the year (1\(en9999) to be displayed;
158 note the year must be fully specified:
162 display a calendar for 1989.
163 Two parameters denote the month and
164 year; the month is either a number between 1 and 12, or a full or
165 abbreviated name as specified by the current locale.
167 year default to those of the current system clock and time zone (so
169 will display a calendar for the month of August in the current
172 Not all options can be used together.
174 .Dq Li -3 -A 2 -B 3 -y -m 7
176 show me the three months around the seventh month, three before
177 that, two after that and the whole year.
179 will warn about these combinations.
181 A year starts on January 1.
183 Highlighting of dates is disabled if stdout is not a tty.
190 utility is compliant with the
191 X/Open System Interfaces option of the
197 as well as the ability to specify a month name as a single argument,
198 are extensions to that specification.
200 The week number computed by
202 is compliant with the
217 command and manual were written by
218 .An Wolfgang Helbig Aq Mt helbig@FreeBSD.org .
220 The assignment of Julian\(enGregorian switching dates to country
221 codes is historically naive for many countries.
223 Not all options are compatible and using them in different orders
224 will give varying results.