Re: Time zone string not showing - Mailing list pgsql-general

From Tom Lane
Subject Re: Time zone string not showing
Date
Msg-id 13701.1094787869@sss.pgh.pa.us
Whole thread Raw
In response to Time zone string not showing  (Clodoaldo Pinto Neto <clodoaldo_pinto@yahoo.com.br>)
List pgsql-general
=?iso-8859-1?q?Clodoaldo=20Pinto=20Neto?= <clodoaldo_pinto@yahoo.com.br> writes:
> It does not work for a timestamp with time zone column:
> # select to_char(timestamp with time zone '2001-02-16 20:38:40-05' at
> time zone 'BRT', 'HH24:MI DD/MM/YYYY TZ');
>       to_char
> -------------------
>  22:38 16/02/2001

> Is it the expected behavior?

Yes.  AT TIME ZONE converts a timestamp without time zone to a timestamp
with time zone, or vice versa.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: incorrect checksum in control file
Next
From: Eric
Date:
Subject: PhpPgAdmin login weird...