Re: timestamp with time zone question... - Mailing list pgsql-general

From P. George
Subject Re: timestamp with time zone question...
Date
Msg-id 89F89C2E-3C2E-11D9-AD7B-000D932AEE70@juun.com
Whole thread Raw
In response to Re: timestamp with time zone question...  (Michael Fuhr <mike@fuhr.org>)
Responses Re: timestamp with time zone question...
List 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 by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: timestamp with time zone question...
Next
From: Michael Glaesemann
Date:
Subject: Re: timestamp with time zone question...