pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marc G. Fournier <scrappy@postgresql.org>
To: pgsql-sql@postgresql.org
Subject: convert timezone to string ...
Date: Tue, 25 Oct 2005 02:42:11 -0300 (ADT)
Message-ID: <20051025023901.Y56706@hub.org> (raw)


I know that the server knows that ADT == -0400, and AST == -0300 ... is 
there any way of reversing that?  Basically, I want to say:

SELECT timezone_str(-0400, 'not dst');

and have it return ADT ... I've got a method of doing it right now, using 
a function, but just find it looks so messy, just wondering if there is a 
clean way of doing it ...

Thanks ...



view thread (4+ messages)  latest in thread

Message-ID: <20051025023901.Y56706@hub.org>
Permalink:  ../20051025023901.Y56706@hub.org/
Also on:    postgresql.org/message-id/20051025023901.Y56706@hub.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: scrappy@postgresql.org
  Subject: Re: convert timezone to string ...
  In-Reply-To: <20051025023901.Y56706@hub.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