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
25 .\" $FreeBSD: src/usr.bin/ncal/ncal.1,v 1.8.2.7 2002/10/23 08:10:00 roam Exp $
26 .\" $DragonFly: src/usr.bin/ncal/ncal.1,v 1.4 2005/07/31 11:46:52 asmodai Exp $
34 .Nd displays a calendar and the date of easter
46 .Op Fl s Ar country_code
57 utility displays a simple calendar in traditional format and
59 offers an alternative layout, more options and the date of easter.
60 The new format is a little cramped but it makes a year fit
62 If arguments are not specified,
63 the current month is displayed.
65 The options are as follows:
66 .Bl -tag -width indent
68 Display Julian Calendar, if combined with the
70 option, display date of easter according to the Julian Calendar.
72 Display date of easter (for western churches).
74 Display Julian days (days one-based, numbered from January 1).
79 Display date of orthodox easter (Greek and Russian
82 Print the country codes and switching days from Julian to Gregorian
83 Calendar as they are assumed by
85 The country code as determined from the local environment is marked
87 .It Fl s Ar country_code
88 Assume the switch from Julian to Gregorian Calendar at the date
93 tries to guess the switch date from the local environment or
94 falls back to September 2, 1752. This was when Great
95 Britain and her colonies switched to the Gregorian Calendar.
97 Print the number of the week below each week column.
99 Display a calendar for the current year.
102 A single parameter specifies the year (1 - 9999) to be displayed;
103 note the year must be fully specified.
104 Two parameters denote the month and year; the
106 is either a number between
107 1 and 12, or a full or abbreviated name as specified by the current locale.
112 parameter refers to the current year.
114 A year starts on Jan 1.
118 utility returns 0 on success or >0 if an error occurred.
127 and is ahead of the standard with locale-specific Gregorian adoption details.
140 command and manual were written by
141 .An Wolfgang Helbig Aq helbig@FreeBSD.org .
143 The assignment of Julian - Gregorian switching dates to
144 country codes is historically naive for many countries.