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, untar the source code:
$ tar -xvzf yest-126.96.36.199.tgz
o To compile:
$ su -
# gcc -o /usr/local/bin/yest yest-188.8.131.52.c
# cc -o /usr/local/bin/yest yest-184.108.40.206.c
Under Sun OS:
# gcc -DSUNOS -o /usr/local/bin/yest yest-220.127.116.11.c
o Move the man page to an appropriate location, such as:
# cp yest-18.104.22.168.man1 yest.1
# gzip yest.1
# cp yest.1.gz /usr/share/man/man1/
o Supports a new option "--timezone", which may be used to specify a
different timezone for the output date than your local one.
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.