This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]