[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Localized output of the date command



Hi,

when discussing issues about Greek locale, Konstantinos Margaritis
and I realized that date_fmt field had been added in glibc to other
POSIX fields in order to customize output of the 'date' command.
This means that with the latest belocs-locales-data upload, Greek
and French speaking people should no more be surprised by 'date'
output.

If your language also has a wrong output, please file bugreports
against belocs-locales-data (you can of course file a similar bug
report against the locales package).  But contact your l10n list
first to make sure that there is a consensus within your community
on the best display output.

In order to determine this field, you can run date like this:
  $ date +"%a %b %e %H:%M:%S %Z %Y"
to test string formats.  See strftime(3) for explanations on
%-sequences.  The -d flag is also useful, e.g.
  $ date +"%a %b %e %H:%M:%S %Z %Y" -d 23:45
to see time in the afternoon, or
  $ date +"%a %b %e %H:%M:%S %Z %Y" -d 2005-03-04
to check output when day of the month has only one digit.

Denis



Reply to: