bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Bug report for "date"


From: Philip Rowlands
Subject: RE: Bug report for "date"
Date: Wed, 29 Jul 2009 00:56:28 +0100 (BST)
User-agent: Alpine 1.10 (DEB 962 2008-03-14)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]