Re: time data type question - Mailing list pgsql-admin

From Tom Lane
Subject Re: time data type question
Date
Msg-id 2847789.1733514522@sss.pgh.pa.us
Whole thread Raw
In response to time data type question  (Sbob <sbob@quadratum-braccas.com>)
List pgsql-admin
Sbob <sbob@quadratum-braccas.com> writes:
> I thought I would see the time columns shift to mountain time as well. 
> am I doing something wrong?

timetz acts completely differently from timestamptz.  timetz
actually stores two fields, a time-of-day (microseconds since
midnight I think) and a timezone expressed as numeric offset
from UTC.  Once stored, the value does not react to changes
in the timezone setting.

By and large we consider timetz deprecated.  It's there
because the SQL spec requires it, but it doesn't behave in
a way that most people find useful.

            regards, tom lane



pgsql-admin by date:

Previous
From: Sbob
Date:
Subject: time data type question
Next
From: Holger Jakobs
Date:
Subject: Re: time data type question