10cb2e609SWolfgang Helbig/*- 20cb2e609SWolfgang Helbig * Copyright (c) 1997 Wolfgang Helbig 30cb2e609SWolfgang Helbig * All rights reserved. 40cb2e609SWolfgang Helbig * 50cb2e609SWolfgang Helbig * Redistribution and use in source and binary forms, with or without 60cb2e609SWolfgang Helbig * modification, are permitted provided that the following conditions 70cb2e609SWolfgang Helbig * are met: 80cb2e609SWolfgang Helbig * 1. Redistributions of source code must retain the above copyright 90cb2e609SWolfgang Helbig * notice, this list of conditions and the following disclaimer. 100cb2e609SWolfgang Helbig * 2. Redistributions in binary form must reproduce the above copyright 110cb2e609SWolfgang Helbig * notice, this list of conditions and the following disclaimer in the 120cb2e609SWolfgang Helbig * documentation and/or other materials provided with the distribution. 130cb2e609SWolfgang Helbig * 140cb2e609SWolfgang Helbig * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 150cb2e609SWolfgang Helbig * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 160cb2e609SWolfgang Helbig * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 170cb2e609SWolfgang Helbig * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 180cb2e609SWolfgang Helbig * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 190cb2e609SWolfgang Helbig * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 200cb2e609SWolfgang Helbig * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 210cb2e609SWolfgang Helbig * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 220cb2e609SWolfgang Helbig * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 230cb2e609SWolfgang Helbig * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 240cb2e609SWolfgang Helbig * SUCH DAMAGE. 250cb2e609SWolfgang Helbig * 260cb2e609SWolfgang Helbig * $Id$ 270cb2e609SWolfgang Helbig */ 280cb2e609SWolfgang Helbig.Dd December 16, 1997 290cb2e609SWolfgang Helbig.Dt CAL 1 300cb2e609SWolfgang Helbig.Os 310cb2e609SWolfgang Helbig.Sh NAME 320cb2e609SWolfgang Helbig.Nm cal , 330cb2e609SWolfgang Helbig.Nm ncal 340cb2e609SWolfgang Helbig.Nd displays a calendar and the date of easter 350cb2e609SWolfgang Helbig.Sh SYNOPSIS 360cb2e609SWolfgang Helbig.Nm cal 370cb2e609SWolfgang Helbig.Op Fl jy 380cb2e609SWolfgang Helbig.Op Oo Ar month Oc Ar \ year 390cb2e609SWolfgang Helbig.Nm ncal 400cb2e609SWolfgang Helbig.Op Fl jJpwy 410cb2e609SWolfgang Helbig.Op Fl s Ar country code 420cb2e609SWolfgang Helbig.Op Oo Ar month Oc Ar \ year 430cb2e609SWolfgang Helbig.Nm ncal 440cb2e609SWolfgang Helbig.Op Fl Jeo 450cb2e609SWolfgang Helbig.Op Ar year 460cb2e609SWolfgang Helbig.Sh DESCRIPTION 470cb2e609SWolfgang Helbig.Nm Cal 480cb2e609SWolfgang Helbigdisplays a simple calendar in traditional format and 490cb2e609SWolfgang Helbig.Nm ncal 500cb2e609SWolfgang Helbigoffers an alternative layout, more options and the date of easter. 510cb2e609SWolfgang HelbigThe new format is a little cramped but it makes a year fit 520cb2e609SWolfgang Helbigon a 25x80 terminal. 530cb2e609SWolfgang HelbigIf arguments are not specified, 540cb2e609SWolfgang Helbigthe current month is displayed. 550cb2e609SWolfgang HelbigThe options are as follows: 560cb2e609SWolfgang Helbig.Bl -tag -width Ds 570cb2e609SWolfgang Helbig.It Fl J 580cb2e609SWolfgang HelbigDisplay Julian Calendar, if combined with the 590cb2e609SWolfgang Helbig.Fl e 600cb2e609SWolfgang Helbigoption, display date of easter according in the Julian Calendar. 610cb2e609SWolfgang HelbigIf not specified, the Gregorian Calendar is assumed after 620cb2e609SWolfgang Helbigthe switch date and Julian before. (See below) 630cb2e609SWolfgang Helbig.It Fl e 640cb2e609SWolfgang HelbigDisplay date of easter (for western churches). 650cb2e609SWolfgang Helbig.It Fl j 660cb2e609SWolfgang HelbigDisplay julian days (days one-based, numbered from January 1). 670cb2e609SWolfgang Helbig.It Fl o 680cb2e609SWolfgang HelbigDisplay date of orthodox easter (Greek and Russian 690cb2e609SWolfgang HelbigOrthodox Churches). 700cb2e609SWolfgang Helbig.It Fl p 710cb2e609SWolfgang HelbigPrint the country codes and switch dates from Julian to Gregorian 720cb2e609SWolfgang HelbigCalendar as they are assumed by 730cb2e609SWolfgang Helbig.Nm ncal . 740cb2e609SWolfgang Helbig.It Fl s Ar country-code 750cb2e609SWolfgang HelbigAssume the switch from Julian to Gregorian Calendar at the date 760cb2e609SWolfgang Helbigassociated with the 770cb2e609SWolfgang Helbig.Ar country-code . 780cb2e609SWolfgang HelbigIf not specified, 790cb2e609SWolfgang Helbig.Nm ncal 800cb2e609SWolfgang Helbigassumes October 4, 1582 (on this day the Catholic Church switched to Gregorian 810cb2e609SWolfgang HelbigCalendar) and 820cb2e609SWolfgang Helbig.Nm cal 830cb2e609SWolfgang Helbigthinks with Great Britain and her colonies that 840cb2e609SWolfgang HelbigSeptember 2, 1752 was the date to switch. 850cb2e609SWolfgang Helbig.It Fl w 860cb2e609SWolfgang HelbigPrint the number of the week in the year below each week displayed. 870cb2e609SWolfgang Helbig.It Fl y 880cb2e609SWolfgang HelbigDisplay a calendar for the current year. 890cb2e609SWolfgang Helbig.El 900cb2e609SWolfgang Helbig.Pp 910cb2e609SWolfgang HelbigA single parameter specifies the year (1 - 9999) to be displayed; 920cb2e609SWolfgang Helbignote the year must be fully specified: 930cb2e609SWolfgang Helbig.Dq Li cal 89 940cb2e609SWolfgang Helbigwill 950cb2e609SWolfgang Helbig.Em not 960cb2e609SWolfgang Helbigdisplay a calendar for 1989. 970cb2e609SWolfgang HelbigTwo parameters denote the month (1 - 12) and year. 980cb2e609SWolfgang Helbig.Pp 990cb2e609SWolfgang HelbigA year starts on Jan 1. 1000cb2e609SWolfgang Helbig.Pp 1010cb2e609SWolfgang Helbig.Sh SEE ALSO 1020cb2e609SWolfgang Helbig.Xr calendar 3 , 1030cb2e609SWolfgang Helbig.Xr strftime 3 1040cb2e609SWolfgang Helbig.Rs 1050cb2e609SWolfgang Helbig.Sh HISTORY 1060cb2e609SWolfgang HelbigA 1070cb2e609SWolfgang Helbig.Nm cal 1080cb2e609SWolfgang Helbigcommand appeared in 1090cb2e609SWolfgang Helbig.At v6 . 1100cb2e609SWolfgang HelbigThe 1110cb2e609SWolfgang Helbig.Nm ncal 1120cb2e609SWolfgang Helbigcommand appeared in 1130cb2e609SWolfgang Helbig.Fx 3.0 . 1140cb2e609SWolfgang Helbig.Sh AUTHOR 1150cb2e609SWolfgang HelbigThis 1160cb2e609SWolfgang Helbigmanual page and the command was written by 1170cb2e609SWolfgang Helbig.An Wolfgang Helbig Aq helbig@FreeBSD.ORG . 118