Re: Timezone conversion - Mailing list pgsql-sql

From Stephan Szabo
Subject Re: Timezone conversion
Date
Msg-id 20030214095723.V63977-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Timezone conversion  (Jeff Boes <jboes@qtm.net>)
Responses Re: Timezone conversion
List pgsql-sql
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).  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?

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.




pgsql-sql by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Drop temporary table only if it exists
Next
From: Mintoo Lall
Date:
Subject: Re: Drop temporary table only if it exists