From: | Stef <svb(at)ucs(dot)co(dot)za> |
---|---|
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 14:31:01 |
Message-ID: | 20040614163101.5ddd23d3@svb.ucs.co.za |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Hello Eric,
Are you looking for something like :
select to_char(timestamp 'now','YYYY MM DD HH MI SS');
or the values in your example below :
select to_char(timestamp '20041010 00:00:00','YYYY MM DD HH MI SS');
Eric Lemes mentioned :
=> 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
=>
=> 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
=>
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2004-06-14 14:56:05 | Re: Datetime problem |
Previous Message | Eric Lemes | 2004-06-14 14:08:48 | Datetime problem |