From: | Achilleus Mantzios <achill(at)matrix(dot)gatewaynet(dot)com> |
---|---|
To: | Eric Lemes <eric(dot)lemes(at)zanthus(dot)com(dot)br> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Datetime problem |
Date: | 2004-06-14 13:34:44 |
Message-ID: | Pine.LNX.4.44.0406141634190.29656-100000@matrix.gatewaynet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
O kyrios Eric Lemes egrapse stis Jun 14, 2004 :
> Hello there,
>
> I'm with a little trouble with postgresql and date/time conversions:
>
> - select to_timestamp('2004 10 10 00 00 00', 'YYYY MM DD HH MI SS')
>
> the output is:
>
> - 2004-10-09 23:00:00-03
Just do select to_timestamp('2004 10 10 00 00 00', 'YYYY MM DD HH MI
SS')::timestamp
to get rid off timezone info.
>
> Anybody can help me?
>
>
> []'s
>
> Eric Lemes de Godoy Cintra
> Analista de Sistemas Lνder
> Zanthus Sistemas e Equip. Automaηγo S/A
> Desenvolvimento de Software
>
>
>
> eric(dot)lemes(at)zanthus(dot)com(dot)br
> Fone: 55(11) 3750-7077
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com)
> Version: 6.0.693 / Virus Database: 454 - Release Date: 31/5/2004
>
--
-Achilleus
From | Date | Subject | |
---|---|---|---|
Next Message | Eric Lemes | 2004-06-14 14:08:48 | Datetime problem |
Previous Message | Phil Endecott | 2004-06-11 14:42:09 | plpgsql - Insert from a record variable? |