bug-sh-utils
[Top][All Lists]
Advanced

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

date command "-d last month" error


From: Randall Nelson
Subject: date command "-d last month" error
Date: Fri, 29 Mar 2002 22:22:29 -0600

Hello,

I have just found a bug in the date command.

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?

Randy



reply via email to

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