X-Original-To: pgsql-sql@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 9BBAB475F35 for ; Thu, 13 Feb 2003 20:43:26 -0500 (EST) Received: from news.hub.org (news.hub.org [64.49.215.80]) by postgresql.org (Postfix) with ESMTP id B7EF7475F2B for ; Thu, 13 Feb 2003 20:35:17 -0500 (EST) Received: by news.hub.org (Postfix, from userid 8) id 9CA2343A756; Thu, 13 Feb 2003 20:35:17 -0500 (EST) From: Jeff Boes X-Newsgroups: comp.databases.postgresql.sql Subject: Timezone conversion Date: Thu, 13 Feb 2003 20:04:25 -0500 Message-ID: X-Newsreader: Forte Agent 1.92/32.572 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 6 X-Abuse-Report: Send abuse reports to abuse@teranews.com Organization: http://www.TeraNews.com - FREE NNTP Access To: pgsql-sql@postgresql.org X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/336 X-Sequence-Number: 11735 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). What I've been doing is to use a Pl/Pgsql function to subtract the current timezone-offset and add in the desired one. Is there a way to do it without arithmetic?