Re: database design with timestamp - Mailing list pgsql-general

From Bruno Wolff III
Subject Re: database design with timestamp
Date
Msg-id 20021107160418.GA16684@wolff.to
Whole thread Raw
In response to database design with timestamp  (TJ <tj@nospam.com>)
Responses Re: database design with timestamp  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Tue, Nov 05, 2002 at 20:03:37 +0000,
  TJ <tj@nospam.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)

pgsql-general by date:

Previous
From: Neil Conway
Date:
Subject: Re: licenses & price?
Next
From: Bruce Momjian
Date:
Subject: Re: Encrypted Database?