coreutils
[Top][All Lists]
Advanced

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

Re: tests: date: check that the hour format of the current locale is use


From: Collin Funk
Subject: Re: tests: date: check that the hour format of the current locale is used
Date: Sun, 12 Oct 2025 09:36:34 -0700
User-agent: Gnus/5.13 (Gnus v5.13)

Pádraig Brady <P@draigBrady.com> writes:

> On 12/10/2025 06:34, Collin Funk wrote:
>> This patch adds a test that the 'date' command uses the 12-hour clock or
>> 24-hour clock depending on the current locale.
>
> That test is testing the locale definitions as much as date(1),
> so I suspect it would give false failures on various systems.
>
> You could correlate with `date +"$(locale date_fmt)"` I suppose
> (assuming `locale date_fmt` is supported by the system).
>
> I suppose you could

I was assuming that European and American locales use the 12-hour or
24-hour clock correctly. For other parts of the date format I expect a
difference depending on the operating system, otherwise I would have
checked them as well.

Collin



reply via email to

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