bug#80118: Don't just say "invalid date"
Collin Funk <[email protected]> Sat, 03 Jan 2026 16:58:16 -0800
| Newsgroups | gmane.comp.gnu.core-utils.bugs |
|---|---|
| Message-ID | <[email protected]> |
Dan Jacobson <[email protected]> writes: >> $ date --debug -d '01/30/2026 02:00 PM ET' > date: warning: value 1 has less than 4 digits. Assuming MM/DD/YY[YY] > > What does it mean "value 1" ? > > Don't tell me. Just make the error message clearer please. > > And I don't see anything with less than four digits, unless you want four digit days and months... It is refering to the month "01" at the start of the given date string. Some countries use YYYY/MM/DD for dates [1]. Collin [1] https://en.wikipedia.org/wiki/List_of_date_formats_by_country