From: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
---|---|
To: | Julio Cesar Rodriguez Dominguez <jurasec(at)gmail(dot)com> |
Cc: | josefermin54 <josefermin54(at)hotmail(dot)com>, Lista PostgreSQL <pgsql-es-ayuda(at)postgresql(dot)org> |
Subject: | Re: mensajes de funciones |
Date: | 2010-05-25 03:23:38 |
Message-ID: | 1274757712-sup-8465@alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-es-ayuda |
Excerpts from Julio Cesar Rodriguez Dominguez's message of lun may 24 18:52:46 -0400 2010:
> select to_char(now( ), 'TMDay TMDD "de" TMMonth, YYYY');
>
> Funciona con to_char como dijo Alvaro, pero si lo quieres en español debes
> tener configurados tus locales (lc_time) bien en postgresql.conf.
O cambiarlo con SET ...
alvherre=# set lc_time to 'C';
SET
alvherre=# select to_char(now( ), 'TMDay TMDD "de" TMMonth, YYYY');
to_char
────────────────────────
Monday 24 de May, 2010
(1 fila)
alvherre=# set lc_time to 'es_CL';
SET
alvherre=# select to_char(now( ), 'TMDay TMDD "de" TMMonth, YYYY');
to_char
────────────────────────
Lunes 24 de Mayo, 2010
(1 fila)
alvherre=# set lc_time to 'fr_CA';
SET
alvherre=# select to_char(now( ), 'TMDay TMDD "de" TMMonth, YYYY');
to_char
───────────────────────
Lundi 24 de Mai, 2010
(1 fila)
--
Álvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
From | Date | Subject | |
---|---|---|---|
Next Message | José Fermín Francisco Ferreras | 2010-05-25 12:00:04 | RE: mensajes de funciones |
Previous Message | Juan Pablo Sandoval Rivera | 2010-05-25 03:05:05 | Configuracion de sintonizacion |