[Top][All Lists]

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

Re: date command "-d last month" error

From: Bob Proulx
Subject: Re: date command "-d last month" error
Date: Sat, 30 Mar 2002 11:29:53 -0700


> I have just found a bug in the date command.

Thanks for the report.  Could you also report to the email list the
version of the date command you are using.  There have been many bugs
fixed in recent versions.  You might still be using an older version.

If you are using date version 2.0 or earlier which is shipped by many
vendors it is certainly possible you are having problems.  A large
number of bug fixes and improvements went into the sh-utils-2.0.11
around October 2000. Please install a newer version of the code.  The
test release versions at ftp://alpha.gnu.org/gnu/fetish are best.


> on 3/29/02 at 10 PM CST  date -d 'last month' +%Y%m  returned 200203
> Should be 200202
> on 3/28/02 at 10 PM CST  date -d 'last month' +%Y%m  returned 200202
> As it should.
> Could this be due to Feb. having 28 days?

reply via email to

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