4.4BSD/usr/src/contrib/mh-6.8/miscellany/mem/promptdate.1

Compare this file to the similar file:
Show the results in this format:

.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.