Time zone string not showing

From: Clodoaldo Pinto Neto <clodoaldo_pinto(at)yahoo(dot)com(dot)br>
To: pgsql-general(at)postgresql(dot)org
Subject: Time zone string not showing
Date: 2004-09-10 01:03:36
Message-ID: 20040910010336.77346.qmail@web40907.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all,

I want to have the time zone string (like 'BRT') displayed after a
date-time. The date column is of the type timestamp with time zone. But
the time zone is not displayed.

It works for a timestamp without time zone column:
# select to_char(timestamp '2001-02-16 20:38:40' at time zone 'BRT',
'HH24:MI DD/MM/YYYY TZ');
to_char
----------------------
23:38 16/02/2001 UTC

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? Should I just append the time zone
string? The problem is it could be 'BRT' or 'BRST' depending on the
date.

Regards,
Clodoaldo Pinto




_______________________________________________________
Yahoo! Acesso Grátis - navegue de graça com conexão de qualidade!
http://br.acesso.yahoo.com/

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Aaron Birkland 2004-09-10 02:08:35 Re: Memory exhausted (leak?)
Previous Message Chris Travers 2004-09-10 01:02:07 Re: Salt in encrypted password in pg_shadow