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 73B35DA787 for ; Tue, 25 Oct 2005 02:42:18 -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 01440-05 for ; Tue, 25 Oct 2005 05:42:16 +0000 (GMT) Received: from hub.org (hub.org [200.46.204.220]) by svr1.postgresql.org (Postfix) with ESMTP id 95409D6EE1 for ; Tue, 25 Oct 2005 02:42:16 -0300 (ADT) Received: from localhost (av.hub.org [200.46.204.144]) by hub.org (Postfix) with ESMTP id CCBC664B84B for ; Tue, 25 Oct 2005 02:42:17 -0300 (ADT) Received: from hub.org ([200.46.204.220]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 00459-07 for ; Tue, 25 Oct 2005 05:42:13 +0000 (GMT) Received: by hub.org (Postfix, from userid 1043) id D8E3F64B84A; Tue, 25 Oct 2005 02:42:12 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by hub.org (Postfix) with ESMTP id A4C6C64B842 for ; Tue, 25 Oct 2005 02:42:12 -0300 (ADT) Date: Tue, 25 Oct 2005 02:42:11 -0300 (ADT) From: "Marc G. Fournier" X-X-Sender: marc@hub.org To: pgsql-sql@postgresql.org Subject: convert timezone to string ... Message-ID: <20051025023901.Y56706@hub.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new at hub.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=-0.47 required=5 tests=[AWL=-0.470] X-Spam-Level: X-Archive-Number: 200510/280 X-Sequence-Number: 23133 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 ...