bug-coreutils
[Top][All Lists]
Advanced

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

bug#38003: date --date=-1month gives same month today


From: Ilja Honkonen
Subject: bug#38003: date --date=-1month gives same month today
Date: Wed, 6 Nov 2019 16:05:17 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1

Subtracting 1 month from October 31st results in September 31st.
Since the date doesn't exist, it is normalized:
September 31st is "one day after September 30th", which
results in October 1st.

Thanks for explanation. To me it makes more sense that going one month back from 31 oct, or last day of oct, would give last day of sep instead of first day of oct. But now that I'm aware of this feature I can work around it if needed.
Ilja





reply via email to

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