1997-12-19 21:41:21 +00:00
|
|
|
.\" Copyright (c) 1997 Wolfgang Helbig
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
1998-03-23 07:48:45 +00:00
|
|
|
.\" $Id: ncal.1,v 1.5 1998/01/12 05:02:57 obrien Exp $
|
1997-12-19 21:41:21 +00:00
|
|
|
.\"
|
1997-12-15 20:35:22 +00:00
|
|
|
.Dd December 16, 1997
|
|
|
|
.Dt CAL 1
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm cal ,
|
|
|
|
.Nm ncal
|
|
|
|
.Nd displays a calendar and the date of easter
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm cal
|
|
|
|
.Op Fl jy
|
|
|
|
.Op Oo Ar month Oc Ar \ year
|
|
|
|
.Nm ncal
|
|
|
|
.Op Fl jJpwy
|
1998-01-07 07:46:33 +00:00
|
|
|
.Op Fl s Ar country_code
|
1997-12-15 20:35:22 +00:00
|
|
|
.Op Oo Ar month Oc Ar \ year
|
|
|
|
.Nm ncal
|
|
|
|
.Op Fl Jeo
|
|
|
|
.Op Ar year
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm Cal
|
|
|
|
displays a simple calendar in traditional format and
|
|
|
|
.Nm ncal
|
|
|
|
offers an alternative layout, more options and the date of easter.
|
|
|
|
The new format is a little cramped but it makes a year fit
|
|
|
|
on a 25x80 terminal.
|
|
|
|
If arguments are not specified,
|
|
|
|
the current month is displayed.
|
1998-01-07 07:46:33 +00:00
|
|
|
.Pp
|
1997-12-15 20:35:22 +00:00
|
|
|
The options are as follows:
|
1998-01-07 07:46:33 +00:00
|
|
|
.Bl -tag -width indent
|
1997-12-15 20:35:22 +00:00
|
|
|
.It Fl J
|
|
|
|
Display Julian Calendar, if combined with the
|
|
|
|
.Fl e
|
1997-12-19 21:41:21 +00:00
|
|
|
option, display date of easter according to the Julian Calendar.
|
1997-12-15 20:35:22 +00:00
|
|
|
.It Fl e
|
|
|
|
Display date of easter (for western churches).
|
|
|
|
.It Fl j
|
1997-12-19 21:41:21 +00:00
|
|
|
Display Julian days (days one-based, numbered from January 1).
|
1997-12-15 20:35:22 +00:00
|
|
|
.It Fl o
|
|
|
|
Display date of orthodox easter (Greek and Russian
|
|
|
|
Orthodox Churches).
|
|
|
|
.It Fl p
|
1997-12-19 21:41:21 +00:00
|
|
|
Print the country codes and switching days from Julian to Gregorian
|
1997-12-15 20:35:22 +00:00
|
|
|
Calendar as they are assumed by
|
|
|
|
.Nm ncal .
|
1998-01-03 15:10:11 +00:00
|
|
|
The country code as determined from the local environment is marked
|
|
|
|
with an asterisk.
|
1998-01-07 07:46:33 +00:00
|
|
|
.It Fl s Ar country_code
|
1997-12-15 20:35:22 +00:00
|
|
|
Assume the switch from Julian to Gregorian Calendar at the date
|
|
|
|
associated with the
|
1998-01-07 07:46:33 +00:00
|
|
|
.Ar country_code .
|
1997-12-15 20:35:22 +00:00
|
|
|
If not specified,
|
|
|
|
.Nm ncal
|
1998-01-03 15:10:11 +00:00
|
|
|
tries to guess the switch date from the local environment or
|
|
|
|
falls back to September 2, 1752. This was when Great
|
|
|
|
Britain and her colonies switched to the Gregorian Calendar.
|
1997-12-15 20:35:22 +00:00
|
|
|
.It Fl w
|
1997-12-19 21:41:21 +00:00
|
|
|
Print the number of the week below each week column.
|
1997-12-15 20:35:22 +00:00
|
|
|
.It Fl y
|
|
|
|
Display a calendar for the current year.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
A single parameter specifies the year (1 - 9999) to be displayed;
|
|
|
|
note the year must be fully specified:
|
|
|
|
.Dq Li cal 89
|
|
|
|
will
|
|
|
|
.Em not
|
|
|
|
display a calendar for 1989.
|
|
|
|
Two parameters denote the month (1 - 12) and year.
|
|
|
|
.Pp
|
|
|
|
A year starts on Jan 1.
|
|
|
|
.Pp
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr calendar 3 ,
|
|
|
|
.Xr strftime 3
|
|
|
|
.Rs
|
|
|
|
.Sh HISTORY
|
|
|
|
A
|
|
|
|
.Nm cal
|
|
|
|
command appeared in
|
|
|
|
.At v6 .
|
|
|
|
The
|
|
|
|
.Nm ncal
|
1998-01-12 05:02:57 +00:00
|
|
|
command appeared after
|
|
|
|
.Fx 2.2.5 .
|
1998-03-23 07:48:45 +00:00
|
|
|
.Sh AUTHORS
|
1997-12-15 20:35:22 +00:00
|
|
|
This
|
|
|
|
manual page and the command was written by
|
1998-03-23 07:48:45 +00:00
|
|
|
.An Wolfgang Helbig Aq helbig@FreeBSD.org .
|
1998-01-03 15:10:11 +00:00
|
|
|
.Sh BUGS
|
|
|
|
The assignment of Julian - Gregorian switching dates to
|
|
|
|
country codes is historically naive for many countries.
|