public inbox for libc-locales@sourceware.org
 help / color / mirror / Atom feed
* LC_TIME is missing some really useful options
@ 2010-11-10  7:07 Nicolo' Chieffo
  0 siblings, 0 replies; only message in thread
From: Nicolo' Chieffo @ 2010-11-10  7:07 UTC (permalink / raw)
  To: libc-locales

LC_TIME is capable of printing accordingly to the locale the date and
time in too restricted way.
- full date and time (with seconds) and timezone
- full time with seconds
- full date in numeric format

these things are really useful:
- time without seconds
- date in alphanumeric format, either long and short

Lots of programs needs those formats, and are currently using
workarounds, such as using gettext to translate the strings to obtain
the date/time in the desired format.
Unfortunately this method does not work if you use a different locale
for LC_TIME and LANG/LANGUAGE, because the time/date will be printed
using the LANG/LANGUAGE format (so it's different from the one it
should be printed), but translated using LC_TIME strings.

Do you have any suggestions?
Is there the possibility to add new formats to LC_TIME? They are really needed.

Thanks.

Nicolò Chieffo

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-11-10  7:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-10  7:07 LC_TIME is missing some really useful options Nicolo' Chieffo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).