bug-coreutils
[Top][All Lists]
Advanced

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

bug#26101: Counterproductive calculation order in date


From: Ulf Zibis
Subject: bug#26101: Counterproductive calculation order in date
Date: Wed, 15 Mar 2017 14:43:47 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0


Am 15.03.2017 um 13:44 schrieb Eric Blake:
Maybe you are confused on how date implements "subtract a month".  It
does NOT do "subtract 28, 29, 30, or 31 days as appropriate", but rather
does "subtract 30 days, for lack of anything better to do".

Are you really sure ???
Here on my 8.25 version I get:
$ date -d "-12 month" +%F
2016-03-15
$ date -d "-360 day" +%F
2016-03-20

So I think my list for enhancements is still fully applicable.

-Ulf

PS: You may drop the copy to my personal email, so I don't get it twice, as I'm subscribed to the list.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


reply via email to

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