Re: How to get localized to_char(DATE) output - Mailing list pgsql-sql

From Jasen Betts
Subject Re: How to get localized to_char(DATE) output
Date
Msg-id hru3qe$cp7$1@reversiblemaps.ath.cx
Whole thread Raw
In response to How to get localized to_char(DATE) output  (Thomas Kellerer <spam_eater@gmx.net>)
Responses Re: How to get localized to_char(DATE) output  (Thomas Kellerer <spam_eater@gmx.net>)
List pgsql-sql
On 2010-05-06, Thomas Kellerer <spam_eater@gmx.net> wrote:
> Tom Lane, 06.05.2010 00:51:
>> Thomas Kellerer<spam_eater@gmx.net>  writes:
>>> I'm trying to get the output of the to_char(date, text) method in German but I can't get it to work:
>>
>> I think you need 'TMMon' to get a localized month name.
>>
>>             regards, tom lane
>>
> Ah! Silly me. Now that you write this I can see it in the manual ;)
>
> The manual says the value for lc_time is OS dependent and indeed "set lc_time = 'German'" does not work on Solaris.
>
> Is there a way to get a list of allowed values for lc_time for a specific installation?

"man -k locale"  would be my starting point (for anything POSIXish)

Looks like "locale -a" does it on linux, that may be worth a try.

"de_DE" is the locale for German as used in Germany.




pgsql-sql by date:

Previous
From: Thomas Kellerer
Date:
Subject: Re: How to get localized to_char(DATE) output
Next
From: Thomas Kellerer
Date:
Subject: Re: How to get localized to_char(DATE) output