Skip site navigation (1) Skip section navigation (2)

Re: cambiar las abreviaturas de Template Patterns para fechas

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: juan <juanramirez(at)cajazacate(dot)com(dot)sv>
Cc: pgsql-es-ayuda <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: cambiar las abreviaturas de Template Patterns para fechas
Date: 2009-08-28 23:40:56
Message-ID: 20090828234056.GI7070@alvh.no-ip.org (view raw or flat)
Thread:
Lists: pgsql-es-ayuda
juan escribió:

> Entonces pregunto, es posible sobrecargar no la funcion, sino, las
> valores de las abreviaturas, por ejemplo que al poner select
> to_char('08/26/1987'::date, 'DD Mon YYYY') retorne "26 Ago 1987"

alvherre=# select to_char('26/08/1987'::date, 'TMDay, DD TMMonth YYYY');
          to_char          
---------------------------
 Miércoles, 26 Agosto 1987
(1 fila)


-- 
Alvaro Herrera                 http://www.amazon.com/gp/registry/CTMLCN8V17R4
"Once again, thank you and all of the developers for your hard work on
PostgreSQL.  This is by far the most pleasant management experience of
any database I've worked on."                             (Dan Harris)
http://archives.postgresql.org/pgsql-performance/2006-04/msg00247.php

In response to

Responses

pgsql-es-ayuda by date

Next:From: Carlos BazánDate: 2009-08-29 00:03:32
Subject: Re: Diferencia entre constraint e index
Previous:From: Jaime CasanovaDate: 2009-08-28 23:35:16
Subject: Re: Diferencia entre constraint e index

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group