Re: Timezone conversion

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Jeff Boes <jboes(at)qtm(dot)net>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Timezone conversion
Date: 2003-02-14 18:00:52
Message-ID: 20030214095723.V63977-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Mintoo Lall 2003-02-14 18:12:14 Re: Drop temporary table only if it exists
Previous Message Josh Berkus 2003-02-14 17:48:15 Re: Drop temporary table only if it exists