ncal.1 (1d0e1dac57c1874f21c85793acf1925c9bdca13d) | ncal.1 (4af997a87fe5082e60a1a65537a3fd51cb845efa) |
---|---|
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. --- 103 unchanged lines hidden (view full) --- 112tries to guess the switch date from the local environment or 113falls back to September 2, 1752. 114This was when Great 115Britain and her colonies switched to the Gregorian Calendar. 116.It Fl w 117Print the number of the week below each week column. 118.It Fl y 119Display a calendar for the specified year. | 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. --- 103 unchanged lines hidden (view full) --- 112tries to guess the switch date from the local environment or 113falls back to September 2, 1752. 114This was when Great 115Britain and her colonies switched to the Gregorian Calendar. 116.It Fl w 117Print the number of the week below each week column. 118.It Fl y 119Display a calendar for the specified year. |
120.It Fl b 121Switch to backwards compatibility mode (for debugging). 122.It Fl d Ar yyyy-mm-dd 123Use 124.Ar yyyy-mm-dd 125as the current date (for debugging of highlighting). | |
126.It Fl 3 127Display the previous, current and next month surrounding today. 128.It Fl A Ar number 129Display the 130.Ar number 131of months after the current month. 132.It Fl B Ar number 133Display the 134.Ar number 135of months before the current month. | 120.It Fl 3 121Display the previous, current and next month surrounding today. 122.It Fl A Ar number 123Display the 124.Ar number 125of months after the current month. 126.It Fl B Ar number 127Display the 128.Ar number 129of months before the current month. |
130.It Fl b 131Switch to backwards compatibility mode (for debugging). 132.It Fl d Ar yyyy-mm 133Use 134.Ar yyyy-mm 135as the current date (for debugging of date selection). 136.It Fl H Ar yyyy-mm-dd 137Use 138.Ar yyyy-mm-dd 139as the current date (for debugging of highlighting). |
|
136.El 137.Pp 138A single parameter specifies the year (1\(en9999) to be displayed; 139note the year must be fully specified: 140.Dq Li cal 89 141will 142.Em not 143display a calendar for 1989. Two parameters denote the month and 144year; the month is either a number between 1 and 12, or a full or 145abbreviated name as specified by the current locale. Month and 146year default to those of the current system clock and time zone (so 147.Dq Li cal -m 8 148will display a calendar for the month of August in the current 149year). 150.Pp | 140.El 141.Pp 142A single parameter specifies the year (1\(en9999) to be displayed; 143note the year must be fully specified: 144.Dq Li cal 89 145will 146.Em not 147display a calendar for 1989. Two parameters denote the month and 148year; the month is either a number between 1 and 12, or a full or 149abbreviated name as specified by the current locale. Month and 150year default to those of the current system clock and time zone (so 151.Dq Li cal -m 8 152will display a calendar for the month of August in the current 153year). 154.Pp |
155Not all options can be used together. For example 156.Dq Li -3 -A 2 -B 3 -y -m 7 157would mean: 158show me the three months around the seventh month, three before 159that, two after that and the whole year. 160.Nm ncal 161will warn about these combinations. 162.Pp |
|
151A year starts on January 1. 152.Sh SEE ALSO 153.Xr calendar 3 , 154.Xr strftime 3 155.Sh HISTORY 156A 157.Nm 158command appeared in --- 16 unchanged lines hidden --- | 163A year starts on January 1. 164.Sh SEE ALSO 165.Xr calendar 3 , 166.Xr strftime 3 167.Sh HISTORY 168A 169.Nm 170command appeared in --- 16 unchanged lines hidden --- |