From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: Jeff Boes <jboes@qtm.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: Timezone conversion
Date: Fri, 14 Feb 2003 10:00:52 -0800 (PST)
Message-ID: <20030214095723.V63977-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <usfo4vs8tq35e486ha9pbc6gcu921d3uhn@4ax.com>
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: sszabo@megazone23.bigpanda.com, jboes@qtm.net
Subject: Re: Timezone conversion
In-Reply-To: <20030214095723.V63977-100000@megazone23.bigpanda.com>
References: <usfo4vs8tq35e486ha9pbc6gcu921d3uhn@4ax.com> <20030214095723.V63977-100000@megazone23.bigpanda.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox