2015-10-08 11:15:08 -04:00
|
|
|
.Dd 2015-10-08
|
2015-01-31 08:20:02 -05:00
|
|
|
.Dt CAL 1
|
2015-01-31 14:37:03 -05:00
|
|
|
.Os sbase
|
2015-01-16 15:50:34 -05:00
|
|
|
.Sh NAME
|
|
|
|
.Nm cal
|
|
|
|
.Nd show calendar
|
|
|
|
.Sh SYNOPSIS
|
2015-01-30 15:17:58 -05:00
|
|
|
.Nm
|
2015-03-08 16:28:32 -04:00
|
|
|
.Op Fl 1 | Fl 3 | Fl y | Fl n Ar num
|
|
|
|
.Op Fl s | Fl m | Fl f Ar num
|
|
|
|
.Op Fl c Ar num
|
2015-01-16 16:46:37 -05:00
|
|
|
.Oo Oo Ar month Oc Ar year Oc
|
2015-01-16 15:50:34 -05:00
|
|
|
.Sh DESCRIPTION
|
2015-03-08 16:28:32 -04:00
|
|
|
.Nm
|
|
|
|
writes a calendar of
|
2015-01-16 15:50:34 -05:00
|
|
|
.Ar month
|
2013-06-19 14:13:50 -04:00
|
|
|
and
|
2015-03-08 16:28:32 -04:00
|
|
|
.Ar year
|
|
|
|
or the current month to stdout.
|
2015-01-08 14:21:37 -05:00
|
|
|
If
|
2015-01-16 15:50:34 -05:00
|
|
|
.Ar year
|
2015-01-08 14:21:37 -05:00
|
|
|
is given without
|
2015-01-16 15:50:34 -05:00
|
|
|
.Ar month ,
|
2015-03-08 16:28:32 -04:00
|
|
|
.Nm
|
|
|
|
writes a 3-column calendar of the whole
|
|
|
|
year to stdout.
|
|
|
|
The date formatting is according to
|
|
|
|
.Xr localtime 3 .
|
2015-01-16 15:50:34 -05:00
|
|
|
.Pp
|
2020-03-01 17:37:31 -05:00
|
|
|
The Julian calendar is used until Sep 2, 1752.
|
|
|
|
The Gregorian calendar is used starting the next day on Sep 14, 1752.
|
2015-01-16 15:50:34 -05:00
|
|
|
.Sh OPTIONS
|
|
|
|
.Bl -tag -width Ds
|
2015-01-17 19:40:37 -05:00
|
|
|
.It Fl 1
|
2020-03-01 17:37:31 -05:00
|
|
|
Print current month.
|
|
|
|
This is the default.
|
2015-01-17 19:40:37 -05:00
|
|
|
.It Fl 3
|
2015-03-08 16:28:32 -04:00
|
|
|
Print previous, current and next month.
|
|
|
|
.It Fl c Ar num
|
|
|
|
Print
|
|
|
|
.Ar num
|
2020-03-01 17:37:31 -05:00
|
|
|
calendars in a row.
|
|
|
|
The default is 3.
|
2015-03-08 16:28:32 -04:00
|
|
|
.It Fl f Ar num
|
|
|
|
Set
|
|
|
|
.Ar num
|
2015-02-01 14:52:28 -05:00
|
|
|
(0 is Sunday, 6 is Saturday) as first day of week.
|
|
|
|
.It Fl m
|
2015-03-08 16:28:32 -04:00
|
|
|
Set Monday as first day of week.
|
|
|
|
.It Fl n Ar num
|
|
|
|
Output
|
|
|
|
.Ar num
|
|
|
|
months starting from and including the current month.
|
2015-02-01 14:52:28 -05:00
|
|
|
.It Fl s
|
2015-03-08 16:28:32 -04:00
|
|
|
Set Sunday as first day of week.
|
|
|
|
.It Fl y
|
|
|
|
Print the entire
|
|
|
|
.Ar year
|
|
|
|
or current year.
|
2015-01-16 15:50:34 -05:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr localtime 3
|
|
|
|
.Sh STANDARDS
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility is compliant with the
|
2015-03-27 12:22:48 -04:00
|
|
|
.St -p1003.1-2013
|
2015-01-16 15:50:34 -05:00
|
|
|
specification.
|
|
|
|
.Pp
|
|
|
|
The flags
|
2015-03-08 16:28:32 -04:00
|
|
|
.Op Fl 13cfmnsy
|
2015-01-16 15:50:34 -05:00
|
|
|
are an extension to that specification.
|