Phil, As I said...it is a workaround, since ins Solaris you cannot execute that command:
# date -R --date="-14 days" date: illegal option -- R date: illegal option -- date=-14 days usage: date [-u] mmddHHMM[[cc]yy][.SS] date [-u] [+format] date -a [-]sss[.fff] Best, Paul -----Original Message----- From: Philip Rowlands [mailto:p...@doc.ic.ac.uk] Sent: Tuesday, July 28, 2009 7:56 PM To: Paul Grinberg Cc: bug-coreutils@gnu.org Subject: RE: Bug report for "date" 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&c atid=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