[PATCH] en_US: define date_fmt (bug 24046)
Rafal Luzynski
digitalfreak@lingonborough.com
Wed Jan 2 23:44:00 GMT 2019
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
More information about the Libc-alpha
mailing list