bug-coreutils
[Top][All Lists]
Advanced

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

bug#18159: Bugin getting 'last month' on last day of the month


From: jemail2013
Subject: bug#18159: Bugin getting 'last month' on last day of the month
Date: Thu, 31 Jul 2014 16:10:22 +0000 (UTC)

Hi, 
Today is July 31st. I am trying to get the last month and the result is still 
07 which is the current month. Also, the day for the last month is returned as 
'01'. 
This worked correctly yesterday, July 30th. So, I think that there is a bug 
running it on the last day of the month. 
Either that, I am doing something silly :-). 

But please check. 

[M1]->date +'%Y%m%d' 
20140731 


[M1]->date +'%Y%m%d' -d ' last month ' 
20140701 

[M1]->date +'%Y%m%d' -d ' 2 months ago ' 
20140531 




Thanks, 


Murali. 


reply via email to

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