This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
localedata - showing AM / PM in en_GB
- From: Stroller <stroller at stellar dot eclipse dot co dot uk>
- To: libc-help at sourceware dot org
- Date: Fri, 7 Jan 2011 19:44:59 +0000
- Subject: localedata - showing AM / PM in en_GB
Hi there,
I'm trying to show date in a nice format, using something like `date +"%l:%M%P"`
(actually, I'm using Perl, but I can reproduce in the shell using `date` from GNU coreutils).
If LC_TIME=POSIX is set in my locale, this date shows correctly as "7:32pm", but if LC_TIME=en_GB it shows only "7:32".
I understand that this environment is based on the localedata from
http://sourceware.org/git/?p=glibc.git;a=tree;f=localedata/locales;hb=HEAD
I guess my question is whether this is correct.
Should I be setting:
LANG="en_GB"
LC_TIME="POSIX"
??
Or should LC_TIME=en_GB provide an AM / PM string?
Thanks for reading,
Stroller.