Mercurial > hg > Applications > mh
diff miscellany/mem/promptdate.1 @ 0:bce86c4163a3
Initial revision
author | kono |
---|---|
date | Mon, 18 Apr 2005 23:46:02 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/miscellany/mem/promptdate.1 Mon Apr 18 23:46:02 2005 +0900 @@ -0,0 +1,53 @@ +.TH PROMPTDATE 1 3/13/86 +.SH NAME +promptdate \- accept date entry and print out in specified format +.SH SYNOPSIS +.B promptdate +[ +.B -f format +] [ +.B datespec +] +.SH DESCRIPTION +If no format is specified, one suitable for parsing by MH +will be used. +.PP +If no date is given on the command line, +.I promptdate +will interactively prompt for one. +It will persist in asking for a date until +a legal date is supplied. +To exit, type the EOF character (normally control-d). +.PP +The syntax of an acceptable date specification is: +.IP +"today" | "tomorrow" | <dayofweek> | "+"<daysfromtoday> +| <date> [<month> [<year>]] +.PP +where: +.IP +<dayofweek> is "sunday",...,"saturday" +.IP +<daysfromtoday> is an unsigned decimal number +.IP +<date> is a valid date for that month +.IP +<month> is "january",...,"december" +.IP +<year> is > 1970 +.PP +Alphabetic strings may be in +any mix of upper or lower case. +They may also be abbreviated to +the first three letters. +.PP +<dayofweek> is equivalent +to specifying from "+1" to "+7". +.SH AUTHOR +Ken Yap (University of Rochester) +.SH BUGS +This manual page lies - the format is hardwired for MH. +General date formatting is not implemented yet. +.PP +Should accept more date formats. Will be replaced by a +user-friendlier version soon.