This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] en_US: define date_fmt (bug 24046)
- From: Rafal Luzynski <digitalfreak at lingonborough dot com>
- To: Aurelien Jarno <aurelien at aurel32 dot net>, libc-alpha at sourceware dot org
- Date: Thu, 3 Jan 2019 00:43:41 +0100 (CET)
- Subject: Re: [PATCH] en_US: define date_fmt (bug 24046)
- References: <20181230235437.20485-1-aurelien@aurel32.net>
31.12.2018 00:54 Aurelien Jarno <aurelien@aurel32.net> wrote:
> --- a/localedata/locales/en_US
> +++ b/localedata/locales/en_US
> @@ -117,6 +117,9 @@ t_fmt "%r"
> % Appropriate AM/PM time representation (%r)
> t_fmt_ampm "%I:%M:%S %p"
> %
> +% Appropriate date representation (date(1))
> +date_fmt "%a %d %b %Y %I:%M:%S %p %Z"
I thought about it only now. For the consistency with d_t_fmt,
could we use this?
date_fmt "%a %d %b %Y %r %Z"
The output of "%r" is defined by t_fmt_ampm which is "%I:%M:%S %p"
in en_US.
Also, please note that here we are switching from "%a %b %e"
(month-day order) to "%a %d %b" (day-month order). I hope this
is not confusing for the US citizens, especially since d_t_fmt
already has day-month order and since "%b" cannot be mistaken
for the day number.
en_GB has the day-month order in both date_fmt and d_t_fmt.
Regards,
Rafal