xref: /freebsd/usr.bin/ncal/ncal.1 (revision 8fe908ef0cb7aeeb5658acd30b9c9a11b8e33b32)
1cb0f03a1SWolfgang Helbig.\" Copyright (c) 1997 Wolfgang Helbig
2cb0f03a1SWolfgang Helbig.\" All rights reserved.
3cb0f03a1SWolfgang Helbig.\"
4cb0f03a1SWolfgang Helbig.\" Redistribution and use in source and binary forms, with or without
5cb0f03a1SWolfgang Helbig.\" modification, are permitted provided that the following conditions
6cb0f03a1SWolfgang Helbig.\" are met:
7cb0f03a1SWolfgang Helbig.\" 1. Redistributions of source code must retain the above copyright
8cb0f03a1SWolfgang Helbig.\"    notice, this list of conditions and the following disclaimer.
9cb0f03a1SWolfgang Helbig.\" 2. Redistributions in binary form must reproduce the above copyright
10cb0f03a1SWolfgang Helbig.\"    notice, this list of conditions and the following disclaimer in the
11cb0f03a1SWolfgang Helbig.\"    documentation and/or other materials provided with the distribution.
12cb0f03a1SWolfgang Helbig.\"
13cb0f03a1SWolfgang Helbig.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14cb0f03a1SWolfgang Helbig.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15cb0f03a1SWolfgang Helbig.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16cb0f03a1SWolfgang Helbig.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17cb0f03a1SWolfgang Helbig.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18cb0f03a1SWolfgang Helbig.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19cb0f03a1SWolfgang Helbig.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20cb0f03a1SWolfgang Helbig.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21cb0f03a1SWolfgang Helbig.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22cb0f03a1SWolfgang Helbig.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23cb0f03a1SWolfgang Helbig.\" SUCH DAMAGE.
24cb0f03a1SWolfgang Helbig.\"
25c3aac50fSPeter Wemm.\" $FreeBSD$
26cb0f03a1SWolfgang Helbig.\"
270cb2e609SWolfgang Helbig.Dd December 16, 1997
280cb2e609SWolfgang Helbig.Dt CAL 1
290cb2e609SWolfgang Helbig.Os
300cb2e609SWolfgang Helbig.Sh NAME
310cb2e609SWolfgang Helbig.Nm cal ,
320cb2e609SWolfgang Helbig.Nm ncal
330cb2e609SWolfgang Helbig.Nd displays a calendar and the date of easter
340cb2e609SWolfgang Helbig.Sh SYNOPSIS
358fe908efSRuslan Ermilov.Nm
360cb2e609SWolfgang Helbig.Op Fl jy
370cb2e609SWolfgang Helbig.Op Oo Ar month Oc Ar \ year
380cb2e609SWolfgang Helbig.Nm ncal
390cb2e609SWolfgang Helbig.Op Fl jJpwy
40a99e4564SPhilippe Charnier.Op Fl s Ar country_code
410cb2e609SWolfgang Helbig.Op Oo Ar month Oc Ar \ year
420cb2e609SWolfgang Helbig.Nm ncal
430cb2e609SWolfgang Helbig.Op Fl Jeo
440cb2e609SWolfgang Helbig.Op Ar year
450cb2e609SWolfgang Helbig.Sh DESCRIPTION
460cb2e609SWolfgang Helbig.Nm Cal
470cb2e609SWolfgang Helbigdisplays a simple calendar in traditional format and
480cb2e609SWolfgang Helbig.Nm ncal
490cb2e609SWolfgang Helbigoffers an alternative layout, more options and the date of easter.
500cb2e609SWolfgang HelbigThe new format is a little cramped but it makes a year fit
510cb2e609SWolfgang Helbigon a 25x80 terminal.
520cb2e609SWolfgang HelbigIf arguments are not specified,
530cb2e609SWolfgang Helbigthe current month is displayed.
54a99e4564SPhilippe Charnier.Pp
550cb2e609SWolfgang HelbigThe options are as follows:
56a99e4564SPhilippe Charnier.Bl -tag -width indent
570cb2e609SWolfgang Helbig.It Fl J
580cb2e609SWolfgang HelbigDisplay Julian Calendar, if combined with the
590cb2e609SWolfgang Helbig.Fl e
60cb0f03a1SWolfgang Helbigoption, display date of easter according to the Julian Calendar.
610cb2e609SWolfgang Helbig.It Fl e
620cb2e609SWolfgang HelbigDisplay date of easter (for western churches).
630cb2e609SWolfgang Helbig.It Fl j
64cb0f03a1SWolfgang HelbigDisplay Julian days (days one-based, numbered from January 1).
650cb2e609SWolfgang Helbig.It Fl o
660cb2e609SWolfgang HelbigDisplay date of orthodox easter (Greek and Russian
670cb2e609SWolfgang HelbigOrthodox Churches).
680cb2e609SWolfgang Helbig.It Fl p
69cb0f03a1SWolfgang HelbigPrint the country codes and switching days from Julian to Gregorian
700cb2e609SWolfgang HelbigCalendar as they are assumed by
710cb2e609SWolfgang Helbig.Nm ncal .
72cde26ed2SWolfgang HelbigThe country code as determined from the local environment is marked
73cde26ed2SWolfgang Helbigwith an asterisk.
74a99e4564SPhilippe Charnier.It Fl s Ar country_code
750cb2e609SWolfgang HelbigAssume the switch from Julian to Gregorian Calendar at the date
760cb2e609SWolfgang Helbigassociated with the
77a99e4564SPhilippe Charnier.Ar country_code .
780cb2e609SWolfgang HelbigIf not specified,
790cb2e609SWolfgang Helbig.Nm ncal
80cde26ed2SWolfgang Helbigtries to guess the switch date from the local environment or
81cde26ed2SWolfgang Helbigfalls back to September 2, 1752. This was when Great
82cde26ed2SWolfgang HelbigBritain and her colonies switched to the Gregorian Calendar.
830cb2e609SWolfgang Helbig.It Fl w
84cb0f03a1SWolfgang HelbigPrint the number of the week below each week column.
850cb2e609SWolfgang Helbig.It Fl y
860cb2e609SWolfgang HelbigDisplay a calendar for the current year.
870cb2e609SWolfgang Helbig.El
880cb2e609SWolfgang Helbig.Pp
890cb2e609SWolfgang HelbigA single parameter specifies the year (1 - 9999) to be displayed;
900cb2e609SWolfgang Helbignote the year must be fully specified:
910cb2e609SWolfgang Helbig.Dq Li cal 89
920cb2e609SWolfgang Helbigwill
930cb2e609SWolfgang Helbig.Em not
940cb2e609SWolfgang Helbigdisplay a calendar for 1989.
950cb2e609SWolfgang HelbigTwo parameters denote the month (1 - 12) and year.
960cb2e609SWolfgang Helbig.Pp
970cb2e609SWolfgang HelbigA year starts on Jan 1.
980cb2e609SWolfgang Helbig.Pp
990cb2e609SWolfgang Helbig.Sh SEE ALSO
1000cb2e609SWolfgang Helbig.Xr calendar 3 ,
1010cb2e609SWolfgang Helbig.Xr strftime 3
1020cb2e609SWolfgang Helbig.Rs
1030cb2e609SWolfgang Helbig.Sh HISTORY
1040cb2e609SWolfgang HelbigA
1058fe908efSRuslan Ermilov.Nm
1060cb2e609SWolfgang Helbigcommand appeared in
1070cb2e609SWolfgang Helbig.At v6 .
1080cb2e609SWolfgang HelbigThe
1090cb2e609SWolfgang Helbig.Nm ncal
110f24a941bSPoul-Henning Kampcommand appeared in
111f24a941bSPoul-Henning Kamp.Fx 2.2.6 .
112306005e7SPhilippe Charnier.Sh AUTHORS
113f24a941bSPoul-Henning KampThe
114f24a941bSPoul-Henning Kamp.Nm ncal
115f24a941bSPoul-Henning Kampcommand and manual were written by
116306005e7SPhilippe Charnier.An Wolfgang Helbig Aq helbig@FreeBSD.org .
117cde26ed2SWolfgang Helbig.Sh BUGS
118cde26ed2SWolfgang HelbigThe assignment of Julian - Gregorian switching dates to
119cde26ed2SWolfgang Helbigcountry codes is historically naive for many countries.
120