localedata - showing AM / PM in en_GB
Stroller
stroller@stellar.eclipse.co.uk
Fri Jan 7 19:45:00 GMT 2011
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.
More information about the Libc-help
mailing list