Re: Timestamp/Timezone - does this make sense?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ron Johnson <ron(dot)l(dot)johnson(at)cox(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Timestamp/Timezone - does this make sense?
Date: 2007-02-14 08:21:06
Message-ID: 19579.1171441266@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ron Johnson <ron(dot)l(dot)johnson(at)cox(dot)net> writes:
> I think he's asking why:
> select timestamp with time zone '2007-01-01'
> at time zone 'America/Los_Angeles';
> returns a different value than
> select timestamp '2007-01-01'
> at time zone 'America/Los_Angeles';

Those are transformations in opposite directions; see the manual.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ron Johnson 2007-02-14 08:30:58 Re: converting a specified year and week into a date
Previous Message Peter Eisentraut 2007-02-14 08:15:57 [ANNOUNCE] Advisory on possibly insecure security definer functions