YEST 2.7 RELEASE - README
This is called "yest" because the default is to output yesterday´s
date. This utility knows about leap year, daylight savings time, and
This utility adds or subtracts days, hours, and/or minutes from a given
date, and outputs the result in the specified format.
The default, if no adjustment is specified, is "-1d" (subtract one day).
Yest supports most date(1) format codes as well as a few of its own.
Particularly interesting is the "%L" (last day of the month) token.
Finding the last day of the month has always been a problem in Unices.
(Use the correct version number for the version you are installing)
o If you downloaded the tar file:
tar xvzf yest-22.214.171.124.tgz
o To compile:
gcc -o /usr/local/bin/yest yest-126.96.36.199.c
cc -o /usr/local/bin/yest yest-188.8.131.52.c
Under Sun OS:
gcc -DSUNOS -o /usr/local/bin/yest yest-184.108.40.206.c
o Move the man page to an appropriate location, such as:
mv yest-220.127.116.11.man1 /usr/local/man/man1/yest.1
o Now uses the YEST_REGION_US define to simplify compilation in non-US
If YEST_REGION_US is defined, the program will default to "US"
if the LANG environmental variable is undefined.
Remove the "#define YEST_REGION_US" line to reverse the default
o The program now compiles cleanly with the following compile command:
gcc -Wall -Wpointer-arith -Wstrict-prototypes --pedantic \
-o yest yest.c
o Fixed bug when the LANG variable is not set.
o Now supports the date "%^x" construction for uppercasing strings.
o Now compiles cleanly under Sun OS 5.8 Generic.