pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Magnus Hagander <mha@sollentuna.net>
To: Marc G. Fournier <scrappy@postgresql.org>
To: pgsql-sql@postgresql.org
Subject: Re: convert timezone to string ...
Date: Tue, 25 Oct 2005 13:03:19 +0200
Message-ID: <6BCB9D8A16AC4241919521715F4D8BCE92E79F@algol.sollentuna.se> (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 ...

How would you know *which* timezone to go back to? For every hourly
offset there is a whole set of timezones that would result in it...

//Magnus



view thread (4+ messages)  latest in thread

Message-ID: <6BCB9D8A16AC4241919521715F4D8BCE92E79F@algol.sollentuna.se>
Permalink:  ../6BCB9D8A16AC4241919521715F4D8BCE92E79F@algol.sollentuna.se/
Also on:    postgresql.org/message-id/6BCB9D8A16AC4241919521715F4D8BCE92E79F@algol.sollentuna.se

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: mha@sollentuna.net, scrappy@postgresql.org
  Subject: Re: convert timezone to string ...
  In-Reply-To: <6BCB9D8A16AC4241919521715F4D8BCE92E79F@algol.sollentuna.se>
  References: <6BCB9D8A16AC4241919521715F4D8BCE92E79F@algol.sollentuna.se>

* 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