1cal(1) User Commands cal(1)
2
3
4
6 cal - display a calendar
7
9 cal [ [month] year]
10
11
13 The cal utility writes a Gregorian calendar to standard output. If the
14 year operand is specified, a calendar for that year is written. If no
15 operands are specified, a calendar for the current month is written.
16
18 The following operands are supported:
19
20 month Specify the month to be displayed, represented as a decimal
21 integer from 1 (January) to 12 (December). The default is the
22 current month.
23
24
25 year Specify the year for which the calendar is displayed, repre‐
26 sented as a decimal integer from 1 to 9999. The default is the
27 current year.
28
29
31 See environ(5) for descriptions of the following environment variables
32 that affect the execution of cal: LANG, LC_ALL, LC_CTYPE, LC_TIME,
33 LC_MESSAGES, and NLSPATH.
34
35 TZ Determine the timezone used to calculate the value of the current
36 month.
37
38
40 The following exit values are returned:
41
42 0 Successful completion.
43
44
45 >0 An error occurred.
46
47
49 See attributes(5) for descriptions of the following attributes:
50
51
52
53
54 ┌─────────────────────────────┬─────────────────────────────┐
55 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
56 ├─────────────────────────────┼─────────────────────────────┤
57 │Availability │SUNWesu │
58 ├─────────────────────────────┼─────────────────────────────┤
59 │Interface Stability │Standard │
60 └─────────────────────────────┴─────────────────────────────┘
61
63 calendar(1), attributes(5), environ(5), standards(5)
64
66 An unusual calendar is printed for September 1752. That is the month 11
67 days were skipped to make up for lack of leap year adjustments. To see
68 this calendar, type:
69
70 cal 9 1752
71
72
73
74
75 The command cal 83 refers to the year 83, not 1983.
76
77
78 The year is always considered to start in January.
79
80
81
82SunOS 5.11 1 Feb 1995 cal(1)