X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 7D94FDA850; Tue, 25 Oct 2005 08:03:20 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 81119-04; Tue, 25 Oct 2005 11:03:15 +0000 (GMT) Received: from mx-2.sollentuna.net (mx-2.sollentuna.net [195.84.163.199]) by svr1.postgresql.org (Postfix) with ESMTP id 59F6ED9FB7; Tue, 25 Oct 2005 08:03:17 -0300 (ADT) Received: from ALGOL.sollentuna.se (janus.sollentuna.se [62.65.68.67]) by mx-2.sollentuna.net (Postfix) with ESMTP id 18CEA8F283; Tue, 25 Oct 2005 13:03:20 +0200 (CEST) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Subject: Re: convert timezone to string ... Date: Tue, 25 Oct 2005 13:03:19 +0200 Message-ID: <6BCB9D8A16AC4241919521715F4D8BCE92E79F@algol.sollentuna.se> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [SQL] convert timezone to string ... thread-index: AcXZJ9Befrwajd2AQueUUAyiI95TDQAK8JFA From: "Magnus Hagander" To: "Marc G. Fournier" , X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.06 required=5 tests=[AWL=0.010, FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200510/282 X-Sequence-Number: 23135 > I know that the server knows that ADT =3D=3D -0400, and AST =3D=3D=20 > -0300 ... is there any way of reversing that? Basically, I=20 > want to say: >=20 > SELECT timezone_str(-0400, 'not dst'); >=20 > and have it return ADT ... I've got a method of doing it=20 > right now, using a function, but just find it looks so messy,=20 > just wondering if there is a clean way of doing it ... >=20 > 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