*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: cal | Section: 1 | Source: Digital UNIX | File: cal.1.gz
cal(1) General Commands Manual cal(1) NAME cal - Displays a calendar SYNOPSIS cal onth [year]] STANDARDS Interfaces documented on this reference page conform to industry stan- dards as follows: cal: XPG4, XPG4-UNIX Refer to the standards(5) reference page for more information about in- dustry standards and associated tags. OPTIONS None OPERANDS Names the month for which you want the calendar. It can be a number between 1 and 12 for January through December, respectively. If month is not specified, cal displays a calendar for the entire year, unless year is also omitted. Names the year for which you want the calendar. Because cal can display a calendar for any year from 1 to 9999, enter the full year rather than just the last two digits. If year is not specified, cal uses the current year. If no operands are specified, cal displays a calendar for the current month. DESCRIPTION The cal command writes to standard output a Gregorian calendar for the specified year or month. For historical reasons, the cal command's Gregorian calendar is discon- tinuous. The display for September 1752 (cal 9 1752) jumps from Wednes- day the 2nd to Thursday the 14th. The cal command checks the LC_TIME environment variable and uses the correct headers for the current locale. If LC_TIME is not set, cal checks the value of LANG. If neither variable is set, you receive Eng- lish headers. EXIT STATUS The following exit values are returned: Successful completion. An er- ror occurred. EXAMPLES To display a calendar for February 1990, enter: cal 2 1990 To display a calendar for the year 84 A.D., enter: cal 84 To display a calendar for the current month, enter: cal ENVIRONMENT VARIABLES The following environment variables affect the execution of *cmd*: Pro- vides a default value for the internationalization variables that are unset or null. If LANG is unset or null, the corresponding value from the default locale is used. If any of the internationalization vari- ables contain an invalid setting, the utility behaves as if none of the variables had been defined. If set to a non-empty string value, over- rides the values of all the other internationalization variables. De- termines the locale for the interpretation of sequences of bytes of text data as characters (for example, single-byte as opposed to multi- byte characters in arguments). Determines the locale for the format and contents of diagnostic messages written to standard error. Deter- mines the format and contents of the calendar. Determines the location of message catalogues for the processing of LC_MESSAGES. Determines the time zone used to calculate the value of the current month. SEE ALSO Commands: date(1) Files: locale(4) Standards: standards(5) Command and Shell User's Guide cal(1)

Navigation Options