X-Original-To: pgsql-sql@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id D262F475C45 for ; Fri, 14 Feb 2003 16:08:45 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 26ED3475C2B for ; Fri, 14 Feb 2003 16:08:45 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.6/8.12.6) with ESMTP id h1EL8h5u010902; Fri, 14 Feb 2003 16:08:43 -0500 (EST) To: Stephan Szabo Cc: Jeff Boes , pgsql-sql@postgresql.org Subject: Re: Timezone conversion In-reply-to: <20030214095723.V63977-100000@megazone23.bigpanda.com> References: <20030214095723.V63977-100000@megazone23.bigpanda.com> Comments: In-reply-to Stephan Szabo message dated "Fri, 14 Feb 2003 10:00:52 -0800" Date: Fri, 14 Feb 2003 16:08:42 -0500 Message-ID: <10901.1045256922@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/349 X-Sequence-Number: 11747 Stephan Szabo writes: > On Thu, 13 Feb 2003, Jeff Boes wrote: >> Is there a straightforward way to change the display of a time to another >> timezone? For example, my server's environment is EST (-0500); I want to >> convert timestamps for display in PST (-0800). > I think you might be able to use "AT TIME ZONE" to do what you want. I > think it's described in Chapter 6 of the user's guide. Also, there's always the straightforward approach: temporarily change the TIMEZONE variable ;-) I believe AT TIME ZONE is new in 7.3. regards, tom lane