Re: convert timezone to string ... - Mailing list pgsql-sql

From Magnus Hagander
Subject Re: convert timezone to string ...
Date
Msg-id 6BCB9D8A16AC4241919521715F4D8BCE92E79F@algol.sollentuna.se
Whole thread Raw
In response to convert timezone to string ...  ("Marc G. Fournier" <scrappy@postgresql.org>)
List pgsql-sql
> 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


pgsql-sql by date:

Previous
From: PFC
Date:
Subject: Re: automatic update or insert
Next
From: Wiebe Cazemier
Date:
Subject: Re: writable joined view