Re: How to get timezone offset in timestamp with time zone AT TIME ZONE output.

Поиск
Список
Период
Сортировка
От Andrew Gierth
Тема Re: How to get timezone offset in timestamp with time zone AT TIME ZONE output.
Дата
Msg-id 871rw5nkqx.fsf@news-spur.riddles.org.uk
обсуждение исходный текст
Ответ на Re: How to get timezone offset in timestamp with time zone AT TIMEZONE output.  (rob stone <floriparob@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: rob stone
Дата:
Сообщение: Re: How to get timezone offset in timestamp with time zone AT TIMEZONE output.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Mapping view columns to their source columns