summaryrefslogtreecommitdiffstats
path: root/usr.bin/ncal/ncal.1
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>2004-11-23 22:57:17 +0000
committerwollman <wollman@FreeBSD.org>2004-11-23 22:57:17 +0000
commitb59dbc21230362efd6ec777cc8a70939afd7368a (patch)
treeac7c4af7310620fcd7602a3bbb0f2542ef4fc1c9 /usr.bin/ncal/ncal.1
parent0b649957e7c518d5928550a68fddcba26d4f9126 (diff)
downloadFreeBSD-src-b59dbc21230362efd6ec777cc8a70939afd7368a.zip
FreeBSD-src-b59dbc21230362efd6ec777cc8a70939afd7368a.tar.gz
Add a `-m month' flag to provide a more convenient interface for
displaying a calendar for a specific month of the current year than `cal $(date +"%Y") month'. A few minor code cleanups. Set WARNS=1. (This code is WARNS=5 clean except for "`O' modifier used with `%B' strftime format", which is legal in FreeBSD but GCC doesn't know about.) MFC after: 1 week
Diffstat (limited to 'usr.bin/ncal/ncal.1')
-rw-r--r--usr.bin/ncal/ncal.116
1 files changed, 13 insertions, 3 deletions
diff --git a/usr.bin/ncal/ncal.1 b/usr.bin/ncal/ncal.1
index f5734b7..02d3851 100644
--- a/usr.bin/ncal/ncal.1
+++ b/usr.bin/ncal/ncal.1
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd December 16, 1997
+.Dd November 23, 2004
.Dt CAL 1
.Os
.Sh NAME
@@ -38,6 +38,10 @@
.Op Ar month
.Ar year
.Oc
+.Nm
+.Op Fl j
+.Fl m Ar month
+.Op Ar year
.Nm ncal
.Op Fl jJpwy
.Op Fl s Ar country_code
@@ -69,6 +73,9 @@ option, display date of easter according to the Julian Calendar.
Display date of easter (for western churches).
.It Fl j
Display Julian days (days one-based, numbered from January 1).
+.It Fl m Ar month
+Display the specified
+.Ar month .
.It Fl o
Display date of orthodox easter (Greek and Russian
Orthodox Churches).
@@ -91,7 +98,7 @@ Britain and her colonies switched to the Gregorian Calendar.
.It Fl w
Print the number of the week below each week column.
.It Fl y
-Display a calendar for the current year.
+Display a calendar for the specified year.
.El
.Pp
A single parameter specifies the year (1 - 9999) to be displayed;
@@ -102,6 +109,9 @@ will
display a calendar for 1989.
Two parameters denote the month and year; the month is either a number between
1 and 12, or a full or abbreviated name as specified by the current locale.
+Month and year default to those of the current system clock and time zone (so
+.Dq Li cal -m 8
+will display a calendar for the month of August in the current year).
.Pp
A year starts on Jan 1.
.Sh SEE ALSO
@@ -122,5 +132,5 @@ The
command and manual were written by
.An Wolfgang Helbig Aq helbig@FreeBSD.org .
.Sh BUGS
-The assignment of Julian - Gregorian switching dates to
+The assignment of Julian\(EmGregorian switching dates to
country codes is historically naive for many countries.
OpenPOWER on IntegriCloud