From: Tuomas Ahola Date: Tue, 12 May 2026 14:54:27 GMT Subject: [PATCH v2 0/3] approxidate: tweak special date formats Message-ID: <20260512145430.13212-1-taahol@utu.fi> In-Reply-To: <20250318180201.3653-1-taahol@utu.fi> The approxidate system is an endless source of absurdities. Let's make the usual "eh, that's crazy, let's do better with this input" type of fix[1], and tweak some sharp edge cases, including one noticed by Linus back in 2006[2]. After this series, "tea" and "noon" will work predictably with all kinds of date formats (today, yesterday, last Friday, January 5th, one year ago yesterday...) regardless of the current time of day. Links: 1. https://lore.kernel.org/git/20181115144854.GB16450@sigill.intra.peff.net/ 2. https://lore.kernel.org/git/Pine.LNX.4.64.0610101102560.3952@g5.osdl.org/ Tuomas Ahola (3): t0006: add support for approxidate test date adjustment approxidate: make "specials" respect fixed day-of-month approxidate: use deferred mday adjustments for "specials" date.c | 37 +++++++++++++++++++++++++++---------- t/t0006-date.sh | 19 ++++++++++++++++++- 2 files changed, 45 insertions(+), 11 deletions(-) Intervall-diff mot v1: 1: 9bfff739fd < -: ---------- approxidate: make "specials" respect fixed day-of-month 2: 1a4398e5a1 < -: ---------- approxidate: overwrite tm_mday for `now` and `yesterday` -: ---------- > 1: 118f1825ac t0006: add support for approxidate test date adjustment -: ---------- > 2: 21c4858c47 approxidate: make "specials" respect fixed day-of-month -: ---------- > 3: cf72403102 approxidate: use deferred mday adjustments for "specials" base-commit: c44beea485f0f2feaf460e2ac87fdd5608d63cf0 -- 2.30.2