This is the mail archive of the libc-locales@sourceware.org mailing list for the GNU libc locales 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]

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


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