Re: Timezone into/out of function - Mailing list pgsql-novice

From Tom Lane
Subject Re: Timezone into/out of function
Date
Msg-id 473.1116539564@sss.pgh.pa.us
Whole thread Raw
In response to Timezone into/out of function  ("Walker, Jed S" <Jed_Walker@cable.comcast.com>)
List pgsql-novice
"Walker, Jed S" <Jed_Walker@cable.comcast.com> writes:
> I have two functions that have a timestamp wtz passed to and return
> timestamps wtz in a refcursor.  The catch is that I need the timezone on the
> timestamp passed out to match the timezone of the timestamp passed in.

You're misunderstanding how timestamp with time zone works.  There isn't
any explicitly stored zone in a timestamptz value --- it's all GMT under
the hood.  A zone is only introduced for display.

            regards, tom lane

pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: Trigger Function Problem
Next
From: Timo Roessner
Date:
Subject: datatype conversion on postgresql 7.4.1