Re: timestamp with time zone question...

Поиск
Список
Период
Сортировка
От P. George
Тема Re: timestamp with time zone question...
Дата
Msg-id 89F89C2E-3C2E-11D9-AD7B-000D932AEE70@juun.com
обсуждение исходный текст
Ответ на Re: timestamp with time zone question...  (Michael Fuhr <mike@fuhr.org>)
Ответы Re: timestamp with time zone question...
Список pgsql-general
> See the documentation for Date/Time Types and Date/Time Functions
> and Operators:
>
> http://www.postgresql.org/docs/7.4/static/datatype-datetime.html
> http://www.postgresql.org/docs/7.4/static/functions-datetime.html
>
>> if so, does that imply that i can translate these stored dates to any
>> target time zone of my choosing when selecting the date from the db?
>
> Yes -- see the aforementioned documentation.
>


well... the examples in the documentation work, but they only use
static dates (hard-coded, i mean):

SELECT TIMESTAMP WITH TIME ZONE '2001-02-16 20:38:40-05' AT TIME ZONE
'PST';

but, when i try:

SELECT mydatecolumn FROM mytable AT TIME ZONE 'PST';

... i get a parse error.

same thing with:

SELECT TIMESTAMP WITH TIME ZONE mydatecolumn FROM mytable AT TIME ZONE
'PST';

any ideas?

thanks.

- philip





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

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: timestamp with time zone question...
Следующее
От: Michael Glaesemann
Дата:
Сообщение: Re: timestamp with time zone question...