summaryrefslogtreecommitdiffstats
path: root/misc-utils/cal.1
diff options
context:
space:
mode:
authorKarel Zak2016-10-07 16:02:36 +0200
committerKarel Zak2016-10-07 16:02:36 +0200
commit535fd6d2b6b3fec9507b2e435460be317e0485a1 (patch)
tree2e20127a1ca3bdf10dc3297fafdbdf91e4d49814 /misc-utils/cal.1
parentcal: cleanup man page (diff)
downloadkernel-qcow2-util-linux-535fd6d2b6b3fec9507b2e435460be317e0485a1.tar.gz
kernel-qcow2-util-linux-535fd6d2b6b3fec9507b2e435460be317e0485a1.tar.xz
kernel-qcow2-util-linux-535fd6d2b6b3fec9507b2e435460be317e0485a1.zip
cal: support alone month name parameter
For example 'cal August' to print August for the current year. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/cal.1')
-rw-r--r--misc-utils/cal.113
1 files changed, 8 insertions, 5 deletions
diff --git a/misc-utils/cal.1 b/misc-utils/cal.1
index 2048e95e2..39378cfe2 100644
--- a/misc-utils/cal.1
+++ b/misc-utils/cal.1
@@ -44,7 +44,7 @@ cal \- display a calendar
.br
.B cal
[options]
-.RI <timestamp>
+.RI <timestamp|monthname>
.SH DESCRIPTION
.B cal
displays a simple calendar. If no arguments are specified, the current
@@ -103,10 +103,13 @@ Specifies the \fIyear\fR to be displayed; note the year must be fully specified:
.B "cal 89"
will not display a calendar for 1989.
.TP
-\fBSingle string parameter (e.g. 'cal tomorrow')\fR
-Specifies \fItimestamp\fR. The special placeholders are accepted when parsing timestamp, "now" may be used to
-refer to the current time, "today", "yesterday", "tomorrow" refer to
-of the current day, the day before or the next day, respectively.
+\fBSingle string parameter (e.g. 'cal tomorrow' or 'cal August')\fR
+Specifies \fItimestamp\fR or a \fImonth name\fR according to the current
+locales.
+.sp
+The special placeholders are accepted when parsing timestamp, "now" may be used
+to refer to the current time, "today", "yesterday", "tomorrow" refer to of the
+current day, the day before or the next day, respectively.
.sp
The relative date specifications are also accepted, in this case "+" is
evaluated to the current time plus the specified time span. Correspondingly, a