Re: timezone() with timeofday() converts the wrong direction?

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: postgres-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: timezone() with timeofday() converts the wrong direction?
Date: 2005-04-24 16:49:13
Message-ID: 20050424164913.GA66749@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, Apr 24, 2005 at 05:21:41PM +0200, Karsten Hilbert wrote:
> >
> > As far as I know, it's not possible to get output like the following
> > from the same query if the data type is timestamp with time zone:
> >
> > 2005-04-21 15:00:00-07
> > 2005-04-21 22:00:00+00
>
> Doesn't "at time zone" do what you need ?

Not as far as I can tell, because if the result is timestamp with
time zone then it's rotated to the local time zone for display. If
you can post a counterexample then I'd be happy to stand corrected.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rich Shepard 2005-04-24 16:49:21 Primary Key and Indices
Previous Message Tony Caduto 2005-04-24 16:12:41 Delphi personal (was Playing with PostgreSQL and Access VBA)