*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> cal (1)              
Title
Content
Arch
Section
 

CAL(1)

Contents


NAME    [Toc]    [Back]

     cal, ncal -- displays a calendar and the date of easter

SYNOPSIS    [Toc]    [Back]

     cal [-jy] [[month] year]
     ncal [-jJpwy] [-s country_code] [[month] year]
     ncal [-Jeo] [year]

DESCRIPTION    [Toc]    [Back]

     The cal utility displays a simple calendar in traditional format and 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.

     The options are as follows:

     -J      Display Julian Calendar, if combined with the -e option, display
	     date of easter according to the Julian Calendar.

     -e      Display date of easter (for western churches).

     -j      Display Julian days (days one-based, numbered from January 1).

     -o      Display date of orthodox easter (Greek and Russian Orthodox
	     Churches).

     -p      Print the country codes and switching days from Julian to Gregorian
 Calendar as they are assumed by ncal.  The country code as
	     determined from the local environment is marked with an asterisk.

     -s country_code
	     Assume the switch from Julian to Gregorian Calendar at the date
	     associated with the country_code.	If not specified, ncal 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.

     -w      Print the number of the week below each week column.

     -y      Display a calendar for the current year.

     A single parameter specifies the year (1 - 9999) to be displayed; note
     the year must be fully specified: ``cal 89'' will not display a calendar
     for 1989.	Two parameters denote the month and year; the month is either
     a number between 1 and 12, or a full or abbreviated name as specified by
     the current locale.

     A year starts on Jan 1.

SEE ALSO    [Toc]    [Back]

      
      
     calendar(3), strftime(3)

HISTORY    [Toc]    [Back]

     A cal command appeared in Version 5 AT&T UNIX.  The ncal command appeared
     in FreeBSD 2.2.6.

AUTHORS    [Toc]    [Back]

     The ncal command and manual were written by Wolfgang Helbig
     <helbig@FreeBSD.org>.

BUGS    [Toc]    [Back]

     The assignment of Julian - Gregorian switching dates to country codes is
     historically naive for many countries.


FreeBSD 5.2.1		       December 16, 1997		 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
cal Tru64 Displays a calendar
cal OpenBSD displays a calendar
date Tru64 Displays or sets the date
csa_read_calendar_attributes HP-UX read and return the calendar attributes values for a calendar
csa_list_entry_sequence HP-UX lists the recurring calendar entries that are associated with a calendar entry
csa_x_process_updates HP-UX invoke a calendar application's calendar event handler
csa_update_calendar_attributes HP-UX update the calendar attributes values for a calendar
csa_list_calendar_attributes HP-UX list the names of the calendar attributes associated with a calendar
csa_logon HP-UX log on to the calendar service and establish a session with a calendar
csa_delete_calendar HP-UX delete a calendar from the calendar service
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service