Re: Timezone conversion

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Timezone conversion
Дата
Msg-id 20030214095723.V63977-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Timezone conversion  (Jeff Boes <jboes@qtm.net>)
Ответы Re: Timezone conversion  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
On Thu, 13 Feb 2003, Jeff Boes wrote:

> Is there a straightforward way to change the display of a time to another
> timezone?  For example, my server's environment is EST (-0500); I want to
> convert timestamps for display in PST (-0800).  What I've been doing is to use a
> Pl/Pgsql function to subtract the current timezone-offset and add in the desired
> one.  Is there a way to do it without arithmetic?

I think you might be able to use "AT TIME ZONE" to do what you want.  I
think it's described in Chapter 6 of the user's guide.




В списке pgsql-sql по дате отправления:

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: Drop temporary table only if it exists
Следующее
От: Mintoo Lall
Дата:
Сообщение: Re: Drop temporary table only if it exists