Re: database design with timestamp

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: TJ <tj(at)nospam(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: database design with timestamp
Date: 2002-11-07 16:04:18
Message-ID: 20021107160418.GA16684@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Nov 05, 2002 at 20:03:37 +0000,
TJ <tj(at)nospam(dot)com> wrote:
>
> I think I need to somehow display these timestamps back into their timezone
> of origin...so as to be more intuitive for the managers.

You can use SET TIME ZONE in a session to change the time zone used for
outputting time. For example:
area=> select current_time;
timetz
--------------------
10:03:02.390849-06
(1 row)

area=> set time zone 'PST8PDT';
SET
area=> select current_time;
timetz
--------------------
08:03:19.241939-08
(1 row)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2002-11-07 16:05:18 Re: Question about Vacuum, Index, perfromance, future xml
Previous Message Bruce Momjian 2002-11-07 15:56:39 Re: Turning off information messages