From 3fca1a65052dbf02cf920c8311211896f4c5b30c Mon Sep 17 00:00:00 2001 From: joerg Date: Fri, 21 Dec 2007 14:21:42 +0000 Subject: [PATCH] Document ISO format "cal 2007-12", leave "cal 2007/12" undocumented intentionally. --- usr.bin/cal/cal.1 | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/usr.bin/cal/cal.1 b/usr.bin/cal/cal.1 index 9100d0c1af9c..0f3e6d3b3d05 100644 --- a/usr.bin/cal/cal.1 +++ b/usr.bin/cal/cal.1 @@ -1,4 +1,4 @@ -.\" $NetBSD: cal.1,v 1.18 2003/08/07 11:13:13 agc Exp $ +.\" $NetBSD: cal.1,v 1.19 2007/12/21 14:21:42 joerg Exp $ .\" .\" Copyright (c) 1989, 1990, 1993 .\" The Regents of the University of California. All rights reserved. @@ -32,7 +32,7 @@ .\" .\" @(#)cal.1 8.2 (Berkeley) 4/28/95 .\" -.Dd July 23, 2003 +.Dd December 21, 2007 .Dt CAL 1 .Os .Sh NAME @@ -105,15 +105,13 @@ Same as .Dq Fl A Ar 1 Fl B Ar 1 . .El .Pp -A single parameter specifies the year (1 - 9999) to be displayed; -note the year must be fully specified: -.Dq Li cal 89 -will -.Em not -display a calendar for 1989. -Two parameters denote the month (1 - 12) and year. If no parameters are specified, the current month's calendar is displayed. +A single parameter specifies the year and optionally the month +in ISO format: +.Dq Li cal 2007-12 +Two parameters denote the month (1 - 12) and year. +Note that the century must be included in the year. .Pp A year starts on Jan 1. .Sh NOTES