xref: /freebsd/usr.bin/ncal/ncal.1 (revision 380a989b3223d455375b4fae70fd0b9bdd43bafb)
1.\" Copyright (c) 1997 Wolfgang Helbig
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
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.
12.\"
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
23.\" SUCH DAMAGE.
24.\"
25.\"	$Id: ncal.1,v 1.6 1998/03/23 07:45:08 charnier Exp $
26.\"
27.Dd December 16, 1997
28.Dt CAL 1
29.Os
30.Sh NAME
31.Nm cal ,
32.Nm ncal
33.Nd displays a calendar and the date of easter
34.Sh SYNOPSIS
35.Nm cal
36.Op Fl jy
37.Op Oo Ar month Oc Ar \ year
38.Nm ncal
39.Op Fl jJpwy
40.Op Fl s Ar country_code
41.Op Oo Ar month Oc Ar \ year
42.Nm ncal
43.Op Fl Jeo
44.Op Ar year
45.Sh DESCRIPTION
46.Nm Cal
47displays a simple calendar in traditional format and
48.Nm ncal
49offers an alternative layout, more options and the date of easter.
50The new format is a little cramped but it makes a year fit
51on a 25x80 terminal.
52If arguments are not specified,
53the current month is displayed.
54.Pp
55The options are as follows:
56.Bl -tag -width indent
57.It Fl J
58Display Julian Calendar, if combined with the
59.Fl e
60option, display date of easter according to the Julian Calendar.
61.It Fl e
62Display date of easter (for western churches).
63.It Fl j
64Display Julian days (days one-based, numbered from January 1).
65.It Fl o
66Display date of orthodox easter (Greek and Russian
67Orthodox Churches).
68.It Fl p
69Print the country codes and switching days from Julian to Gregorian
70Calendar as they are assumed by
71.Nm ncal .
72The country code as determined from the local environment is marked
73with an asterisk.
74.It Fl s Ar country_code
75Assume the switch from Julian to Gregorian Calendar at the date
76associated with the
77.Ar country_code .
78If not specified,
79.Nm ncal
80tries to guess the switch date from the local environment or
81falls back to September 2, 1752. This was when Great
82Britain and her colonies switched to the Gregorian Calendar.
83.It Fl w
84Print the number of the week below each week column.
85.It Fl y
86Display a calendar for the current year.
87.El
88.Pp
89A single parameter specifies the year (1 - 9999) to be displayed;
90note the year must be fully specified:
91.Dq Li cal 89
92will
93.Em not
94display a calendar for 1989.
95Two parameters denote the month (1 - 12) and year.
96.Pp
97A year starts on Jan 1.
98.Pp
99.Sh SEE ALSO
100.Xr calendar 3 ,
101.Xr strftime 3
102.Rs
103.Sh HISTORY
104A
105.Nm cal
106command appeared in
107.At v6 .
108The
109.Nm ncal
110command appeared in
111.Fx 2.2.6 .
112.Sh AUTHORS
113The
114.Nm ncal
115command and manual were written by
116.An Wolfgang Helbig Aq helbig@FreeBSD.org .
117.Sh BUGS
118The assignment of Julian - Gregorian switching dates to
119country codes is historically naive for many countries.
120