Re: Time zone string not showing

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Clodoaldo Pinto Neto <clodoaldo_pinto(at)yahoo(dot)com(dot)br>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Time zone string not showing
Date: 2004-09-10 03:44:29
Message-ID: 13701.1094787869@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

=?iso-8859-1?q?Clodoaldo=20Pinto=20Neto?= <clodoaldo_pinto(at)yahoo(dot)com(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Eric 2004-09-10 05:40:55 PhpPgAdmin login weird...
Previous Message Tom Lane 2004-09-10 03:36:52 Re: incorrect checksum in control file