ncal.1 (246e7a2b6494cd991b08ac669ed761ecea0cc98c) ncal.1 (7fe961ff485b09d260c547849b2780b97f190dcc)
1.\" Copyright (c) 1997 Wolfgang Helbig
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 10 unchanged lines hidden (view full) ---

19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
25.\" $FreeBSD$
26.\"
1.\" Copyright (c) 1997 Wolfgang Helbig
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 10 unchanged lines hidden (view full) ---

19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
25.\" $FreeBSD$
26.\"
27.Dd March 14, 2009
27.Dd June 08, 2018
28.Dt CAL 1
29.Os
30.Sh NAME
31.Nm cal ,
32.Nm ncal
33.Nd displays a calendar and the date of Easter
34.Sh SYNOPSIS
35.Nm

--- 113 unchanged lines hidden (view full) ---

149as the current date (for debugging of highlighting).
150.El
151.Pp
152A single parameter specifies the year (1\(en9999) to be displayed;
153note the year must be fully specified:
154.Dq Li cal 89
155will
156.Em not
28.Dt CAL 1
29.Os
30.Sh NAME
31.Nm cal ,
32.Nm ncal
33.Nd displays a calendar and the date of Easter
34.Sh SYNOPSIS
35.Nm

--- 113 unchanged lines hidden (view full) ---

149as the current date (for debugging of highlighting).
150.El
151.Pp
152A single parameter specifies the year (1\(en9999) to be displayed;
153note the year must be fully specified:
154.Dq Li cal 89
155will
156.Em not
157display a calendar for 1989. Two parameters denote the month and
157display a calendar for 1989.
158Two parameters denote the month and
158year; the month is either a number between 1 and 12, or a full or
159year; the month is either a number between 1 and 12, or a full or
159abbreviated name as specified by the current locale. Month and
160abbreviated name as specified by the current locale.
161Month and
160year default to those of the current system clock and time zone (so
161.Dq Li cal -m 8
162will display a calendar for the month of August in the current
163year).
164.Pp
162year default to those of the current system clock and time zone (so
163.Dq Li cal -m 8
164will display a calendar for the month of August in the current
165year).
166.Pp
165Not all options can be used together. For example
167Not all options can be used together.
168For example
166.Dq Li -3 -A 2 -B 3 -y -m 7
167would mean:
168show me the three months around the seventh month, three before
169that, two after that and the whole year.
170.Nm ncal
171will warn about these combinations.
172.Pp
173A year starts on January 1.
174.Pp
175Highlighting of dates is disabled if stdout is not a tty.
176.Sh SEE ALSO
177.Xr calendar 3 ,
178.Xr strftime 3
179.Sh HISTORY
180A
181.Nm
182command appeared in
169.Dq Li -3 -A 2 -B 3 -y -m 7
170would mean:
171show me the three months around the seventh month, three before
172that, two after that and the whole year.
173.Nm ncal
174will warn about these combinations.
175.Pp
176A year starts on January 1.
177.Pp
178Highlighting of dates is disabled if stdout is not a tty.
179.Sh SEE ALSO
180.Xr calendar 3 ,
181.Xr strftime 3
182.Sh HISTORY
183A
184.Nm
185command appeared in
183.At v5 .
186.At v1 .
184The
185.Nm ncal
186command appeared in
187.Fx 2.2.6 .
188.Sh AUTHORS
189The
190.Nm ncal
191command and manual were written by
192.An Wolfgang Helbig Aq Mt helbig@FreeBSD.org .
193.Sh BUGS
194The assignment of Julian\(enGregorian switching dates to country
195codes is historically naive for many countries.
196.Pp
197Not all options are compatible and using them in different orders
198will give varying results.
187The
188.Nm ncal
189command appeared in
190.Fx 2.2.6 .
191.Sh AUTHORS
192The
193.Nm ncal
194command and manual were written by
195.An Wolfgang Helbig Aq Mt helbig@FreeBSD.org .
196.Sh BUGS
197The assignment of Julian\(enGregorian switching dates to country
198codes is historically naive for many countries.
199.Pp
200Not all options are compatible and using them in different orders
201will give varying results.