Re: Where are the legal values for LC_TIME listed?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Where are the legal values for LC_TIME listed?
Дата
Msg-id 2820595.1621274971@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Where are the legal values for LC_TIME listed?  (Bryn Llewellyn <bryn@yugabyte.com>)
Ответы Re: Where are the legal values for LC_TIME listed?  (Bryn Llewellyn <bryn@yugabyte.com>)
Список pgsql-docs
Bryn Llewellyn <bryn@yugabyte.com> writes:
> It’s easy to guess values for, say, countries in Europe:

On Unix-ish systems, "locale -a" should provide the set of
available values.  We don't attempt to document this
because it's so installation-dependent.

> But what do I use for, say, Simplified Chinese?

Maybe you don't have a suitable locale installed.

> The obvious search (LC_TIME in the search box of the PG doc for the current version) gets no useful hits.

The main entry for lc_time in

https://www.postgresql.org/docs/current/runtime-config-client.html#RUNTIME-CONFIG-CLIENT-FORMAT

says "Acceptable values are system-dependent; see Section 23.1 for more
information", and if you follow that link, you'll read

    What locales are available on your system under what names depends on
    what was provided by the operating system vendor and what was
    installed. On most Unix systems, the command locale -a will provide a
    list of available locales.

Not sure what more we could say.

            regards, tom lane



В списке pgsql-docs по дате отправления:

Предыдущее
От: Bryn Llewellyn
Дата:
Сообщение: Where are the legal values for LC_TIME listed?
Следующее
От: Bryn Llewellyn
Дата:
Сообщение: Re: Where are the legal values for LC_TIME listed?