On Tue, 28 Jul 2009, Paul Grinberg wrote:
Shell script for Solaris....It can go future as long as I want, but past
only 6 days....
http://www.isrcomputing.com/index.php?option=com_content&view=article&id=125:unix-shell-script-to-calculate-date-in-the-future-and-in-the-past&catid=38:technology-tips&Itemid=82
That script is using (/abusing) TZ beyond its stated purpose. As Bob
suggests, GNU date can perform date calculations with relative offsets,
e.g.
$ date -d 'now + 12 days'
Mon Aug 10 00:55:32 BST 2009
Cheers,
Phil
_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils