This is the mail archive of the
libc-locales@sourceware.org
mailing list for the GNU libc locales project.
Re: 24 hour clock, without seconds
- From: Danilo Segan <dsegan at gmx dot net>
- To: "Ben Asselstine" <benasselstine at gmail dot com>
- Cc: libc-locales at sources dot redhat dot com
- Date: Mon, 26 Mar 2007 23:45:42 +0200
- Subject: Re: 24 hour clock, without seconds
- References: <a4ffb6330703251535l18960865qbbe8e847917559fc@mail.gmail.com>
Today at 0:35, Ben Asselstine wrote:
> My apologies if I'm sending this to the wrong place.
>
> After perusing strftime and friends, I see no easy way to get a
> 24-hour clock with hours and minutes in the current locale. `%H:%M'
> isn't right because the separator might not be `:'. `%X' isn't right
> because I don't want seconds. `%r' isn't right because it does a 12
> hour clock. `%R' isn't right because it's not in the current locale.
>
> Is this a deficiency, or am I just out to lunch.
It's a deficiency: there are no enough formats for dates and times in
POSIX locale specifications (time *and* date, date, time, time in
am/pm notation are the only available formats).
There's attempt to fix that on http://live.gnome.org/LocaleProject,
but we have not moved forward enough.
Cheers,
Danilo