bug-coreutils
[Top][All Lists]
Advanced

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

bug#58599: `date -d $(date)` error for non en_* locale


From: Paul Eggert
Subject: bug#58599: `date -d $(date)` error for non en_* locale
Date: Mon, 17 Oct 2022 18:04:04 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1

On 10/17/22 07:44, Ruslan Kovtun wrote:
According to "do one thing and do it well" and to the fact of '-d/--date'
option existence, `date` should be able to parse its default output in any
locale.

Patches would be welcome. Good luck getting it to work, though. Many date formats are ambiguous, and I don't see how you'd address that.

In the meantime, I suggest sticking to ISO format dates and times with UTC, e.g.:

date -d "$(date -u +'%Y-%m-%d %H:%M:%S.%NZ')"





reply via email to

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