SYNOPSIS
cal [month] [year]
DESCRIPTION
The cal command writes a human-readable calendar on the standard output.
With no arguments, cal displays a calendar for the current month of the current year. If one argument is given and it is numeric, cal interprets it as a year (for example, 1991); if a single argument is not numeric, cal interprets it as the name of a month, possibly abbreviated (for example, apr). When two arguments are given, cal assumes that the first argument is the month (either a number from 1 to 12 or a month name) and the second is the year.
ENVIRONMENT VARIABLES
- TK_USE_CURRENT_LOCALE
-
When set, this environment variable causes months and days of the week to be displayed as defined in the current locale. By default, MKS Toolkit utilities display months and days of the week in English.
DIAGNOSTICS
Possible exit status values are:
PORTABILITY
x/OPEN Portability Guide 4.0. All UNIX systems. Windows 2000. Windows XP. Windows Server 2003. Windows Vista. Windows 7. Windows Server 2008.
NOTES
Year numbers less than 100 refer to the early Christian era, not the current century. This command prints the Gregorian calendar, handling September 1752 correctly. Many cultures observe other calendars.
AVAILABILITY
MKS Toolkit for Power Users
MKS Toolkit for System Administrators
MKS Toolkit for Developers
MKS Toolkit for Interoperability
MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition
MKS Toolkit 9.3 Documentation Build 6.