Re: Where are the legal values for LC_TIME listed? - Mailing list pgsql-docs

From Tom Lane
Subject Re: Where are the legal values for LC_TIME listed?
Date
Msg-id 2820595.1621274971@sss.pgh.pa.us
Whole thread Raw
In response to Where are the legal values for LC_TIME listed?  (Bryn Llewellyn <bryn@yugabyte.com>)
Responses Re: Where are the legal values for LC_TIME listed?  (Bryn Llewellyn <bryn@yugabyte.com>)
List 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 by date:

Previous
From: Bryn Llewellyn
Date:
Subject: Where are the legal values for LC_TIME listed?
Next
From: Bryn Llewellyn
Date:
Subject: Re: Where are the legal values for LC_TIME listed?