This is the mail archive of the
libc-locales@sourceware.org
mailing list for the GNU libc locales project.
LC_TIME is missing some really useful options
- From: "Nicolo' Chieffo" <84yelo3 at gmail dot com>
- To: libc-locales at sourceware dot org
- Date: Wed, 10 Nov 2010 00:43:52 +0100
- Subject: LC_TIME is missing some really useful options
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