pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Edipo E. F. Melo <edipoelder@ig.com.br>
To: pgsql-sql <pgsql-sql@postgresql.org>
Subject: Casting timestamp
Date: Sat, 18 May 2002 20:54:56 -0300
Message-ID: <20020519125527.BF7D14758D7@postgresql.org> (raw)

Hi all, 

	I posting this again...

	Why the second casting don't work?

--- start with this 
set datestyle = 'iso'; 
show datestyle; 
select current_timestamp::text::timestamp; 
--- now try this 
set datestyle = 'postgres'; 
show datestyle; 
select current_timestamp::text::timestamp; 

    In the first one, I get 
          timestamptz 
------------------------------- 
 2002-05-13 10:19:55.158434-03 

    In the last one, I get 
ERROR:  Bad timestamp external representation 'Mon May 13 10:19:56.671847 
2002 BRT' 



    []'s

    Edipo Elder F. de Melo





view thread (3+ messages)  latest in thread

Message-ID: <20020519125527.BF7D14758D7@postgresql.org>
Permalink:  ../20020519125527.BF7D14758D7@postgresql.org/
Also on:    postgresql.org/message-id/20020519125527.BF7D14758D7@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: edipoelder@ig.com.br
  Subject: Re: Casting timestamp
  In-Reply-To: <20020519125527.BF7D14758D7@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox