Re: How to get timezone offset in timestamp with time zone AT TIME ZONE output. - Mailing list pgsql-general

From Andrew Gierth
Subject Re: How to get timezone offset in timestamp with time zone AT TIME ZONE output.
Date
Msg-id 871rw5nkqx.fsf@news-spur.riddles.org.uk
Whole thread Raw
In response to Re: How to get timezone offset in timestamp with time zone AT TIMEZONE output.  (rob stone <floriparob@gmail.com>)
List pgsql-general
>>>>> "rob" == rob stone <floriparob@gmail.com> writes:

 rob> You can EXTRACT timezone, timezone_hour and timezone_minute from a
 rob> timestamp. Using 'timezone' returns a value representing seconds
 rob> from UTC.

Yes, but this always outputs a value representing the server timezone;
there's no way (other than the same function set_config trick I gave
above) to make it return a value that represents a different timezone
per row.

-- 
Andrew (irc:RhodiumToad)



pgsql-general by date:

Previous
From: rob stone
Date:
Subject: Re: How to get timezone offset in timestamp with time zone AT TIMEZONE output.
Next
From: Tom Lane
Date:
Subject: Re: Mapping view columns to their source columns