bug-coreutils
[Top][All Lists]
Advanced

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

bug#80118: Don't just say "invalid date"


From: Collin Funk
Subject: bug#80118: Don't just say "invalid date"
Date: Sat, 03 Jan 2026 16:58:16 -0800
User-agent: Gnus/5.13 (Gnus v5.13)

Dan Jacobson <jidanni@jidanni.org> 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





reply via email to

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