~ubuntu-branches/ubuntu/trusty/util-linux/trusty-proposed

« back to all changes in this revision

Viewing changes to misc-utils/cal.1

  • Committer: Package Import Robot
  • Author(s): LaMont Jones
  • Date: 2011-11-03 15:38:23 UTC
  • mto: (4.5.5 sid) (1.6.4)
  • mto: This revision was merged to the branch mainline in revision 85.
  • Revision ID: package-import@ubuntu.com-20111103153823-10sx16jprzxlhkqf
ImportĀ upstreamĀ versionĀ 2.20.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
.\"
35
35
.\"     @(#)cal.1       8.1 (Berkeley) 6/6/93
36
36
.\"
37
 
.Dd June 6, 1993
38
 
.Dt CAL 1
39
 
.Os
40
 
.Sh NAME
41
 
.Nm cal
42
 
.Nd displays a calendar
43
 
.Sh SYNOPSIS
44
 
.Nm cal
45
 
.Op Fl smjy13
46
 
.Op [ [ Ar day ] Ar month ] Ar year
47
 
.Sh DESCRIPTION
48
 
.Nm Cal
49
 
displays a simple calendar.
50
 
If arguments are not specified,
51
 
the current month is displayed.
52
 
The options are as follows:
53
 
.Bl -tag -width Ds
54
 
.It Fl 1
 
37
.TH CAL 1 "June 2011" "util-linux" "User Commands"
 
38
.SH NAME
 
39
cal \- display a calendar
 
40
.SH SYNOPSIS
 
41
.B cal
 
42
[\fIoptions\fR] [[[\fIday\fR] \fImonth\fR] \fIyear\fR]
 
43
.SH DESCRIPTION
 
44
.B cal
 
45
displays a simple calendar.  If no arguments are specified, the current
 
46
month is displayed.
 
47
.SH OPTIONS
 
48
.TP
 
49
\fB\-1\fR, \fB\-\-one\fR
55
50
Display single month output.
56
51
(This is the default.)
57
 
.It Fl 3
 
52
.TP
 
53
\fB\-3\fR, \fB\-\-three\fR
58
54
Display prev/current/next month output.
59
 
.It Fl s
 
55
.TP
 
56
\fB\-s\fR, \fB\-\-sunday\fR
60
57
Display Sunday as the first day of the week.
61
 
.It Fl m
 
58
.TP
 
59
\fB\-m\fR, \fB\-\-monday\fR
62
60
Display Monday as the first day of the week.
63
 
.It Fl j
 
61
.TP
 
62
\fB\-j\fR, \fB\-\-julian\fR
64
63
Display Julian dates (days one-based, numbered from January 1).
65
 
.It Fl y
 
64
.TP
 
65
\fB\-y\fR, \fB\-\-year\fR
66
66
Display a calendar for the current year.
67
 
.It Fl V
 
67
.TP
 
68
\fB\-V\fR, \fB\-\-version\fR
68
69
Display version information and exit.
69
 
.El
70
 
.Pp
71
 
A single parameter specifies the year (1 - 9999) to be displayed;
72
 
note the year must be fully specified:
73
 
.Dq Li cal 89
74
 
will
75
 
.Em not
76
 
display a calendar for 1989.
 
70
.TP
 
71
\fB\-h\fR, \fB\-\-help\fR
 
72
Display help screen and exit.
 
73
.SH PARAMETERS
 
74
A single parameter specifies the year (1 - 9999) to be displayed; note the
 
75
year must be fully specified:
 
76
.B "cal 89"
 
77
will not display a calendar for 1989.
 
78
.PP
77
79
Two parameters denote the month (1 - 12) and year.
78
 
Three parameters denote the day (1-31), month and year,
79
 
and the day will be highlighted if the calendar is displayed on a terminal.
80
 
If no parameters are specified, the current month's calendar is
81
 
displayed.
82
 
.Pp
83
 
A year starts on Jan 1. The first day of the week is determined by the locale.
84
 
.Pp
85
 
The Gregorian Reformation is assumed to have occurred in 1752 on the 3rd
86
 
of September.
87
 
By this time, most countries had recognized the reformation (although a
88
 
few did not recognize it until the early 1900's.)
89
 
Ten days following that date were eliminated by the reformation, so the
90
 
calendar for that month is a bit unusual.
91
 
.Sh HISTORY
92
 
A
93
 
.Nm
94
 
command appeared in Version 6 AT&T UNIX.
95
 
.Sh AVAILABILITY
 
80
.PP
 
81
Three parameters denote the day (1-31), month and year, and the day will be
 
82
highlighted if the calendar is displayed on a terminal. If no parameters are
 
83
specified, the current month's calendar is displayed.
 
84
.PP
 
85
A year starts on Jan 1. The first day of the week is determined by the
 
86
locale.
 
87
.PP
 
88
The Gregorian Reformation is assumed to have occurred in 1752 on the 3rd of
 
89
September. By this time, most countries had recognized the reformation
 
90
(although a few did not recognize it until the early 1900's). Ten days
 
91
following that date were eliminated by the reformation, so the calendar for
 
92
that month is a bit unusual.
 
93
.SH HISTORY
 
94
A cal command appeared in Version 6 AT&T UNIX.
 
95
.SH AVAILABILITY
96
96
The cal command is part of the util-linux package and is available from
97
97
ftp://ftp.kernel.org/pub/linux/utils/util-linux/.