From: Edipo Elder Fernandes de Melo <edipoelder@ig.com.br>
To: pgsql-sql@postgresql.org
Subject: timestamp and datestyles
Date: Mon, 13 May 2002 10:27:44 -0300
Message-ID: <20020513132745.128F54760AE@postgresql.org> (raw)
Hi all,
Why this is different?
--- 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'
Abracos,
Edipo Elder
[edipoelder@ig.com.br]
_________________________________________________________________________
Você podia estar baixando sua musica predileta, enquanto lia esse e-mail.
Não perca tempo, tenha acesso rápido a internet com o Super iG.
http://registro.ig.com.br/superig
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: timestamp and datestyles
In-Reply-To: <20020513132745.128F54760AE@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