We corrected a possible segmentation violation error if LANG is unset and YEST_REGION_US undefined. (Thanks Freepost).
We also corrected the handling of "th" suffix on %L token. (Thanks Larry Ploetz for finding this).
Thanks to Lubos Rendek's fine work, there is now a Debian package available for yest.
Also, Lubos spotted a bug in the "%j" (year-day) display which has been corrected in this new version.
The year-day value was coming from the tm struct tm_yday element, which starts at 0. To be compatible with the date "+%j" display, yest now displays it starting at 1.
For those affected by the upcoming US DST change, the yest utility makes verifying the time change simple. You don't have to wait for 2:00 am, March 11th to verify your updates.
It works just like this:
$ yest +1m 3/11/2007-01:59 "%f"
Sunday, March 11th, 2007 - 03:00:00 am
Yest uses system calls to work out the new date/time so this accurately tests the system's DST update.
Obviously, if the output time is 02:00:00 am, your server won't have the correct time when DST kicks in.... read more
Yest version 2.7.0.4 has been released. Yest now supports a "--timezone" option, allowing the user to specify the output date timezone as different than the local one.
This command line utility adds or subtracts days, hours, and/or minutes from a given date, and outputs the results in the specified format.
This utility is very useful in scripts where you must automatically determine dates and/or times such as "a week ago", "two hours ago", "tomorrow".
Yest supports most date(1) output format codes as well as a few of its own.
nixCraft has named the yest utility "Download of the Day" and highly recommends it for seasoned UNIX admins. http://www.cyberciti.biz/tips/howto-unix-linux-easy-date-manipulation-with-yest.html
Yest is a command line utility that can add or subtract days, hours, and/or minutes from a given date, and output the results in a specified format.
This utility is very useful in scripts where you must automatically determine dates and/or times such as "a week ago", "two hours ago", "tomorrow".
Yest supports most date(1) output format codes as well as a few very useful codes of its own (such as "%L" - last day of the month).
We are very pleased to announce the release of version 2.7 of yest.
It now supports the date(1) "%^" string modifier, and is now even simpler to compile in non-US environments. Minor bug fixes. It also compiles strictly without warnings.
This command line utility adds or subtracts days, hours, and/or minutes from a given date, and outputs the results in the specified format.
This utility is very useful in scripts where you must automatically determine dates and/or times such as "a week ago", "two hours ago", "tomorrow".
Yest supports most date(1) output format codes as well as a few of its own.