GNU bug report logs - #18159
Bugin getting 'last month' on last day of the month

Previous Next

Package: coreutils;

Reported by: jemail2013 <at> comcast.net

Date: Thu, 31 Jul 2014 17:17:03 UTC

Severity: normal

Tags: notabug

Merged with 11098, 11101, 11125, 15785, 18479, 20523

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: jemail2013 <at> comcast.net
To: bug-coreutils <at> gnu.org
Subject: Bugin getting 'last month' on last day of the month
Date: Thu, 31 Jul 2014 16:10:22 +0000 (UTC)
[Message part 1 (text/plain, inline)]
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. 
[Message part 2 (text/html, inline)]

This bug report was last modified 6 years and 207 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.