Re: [SQL] Timezone issue with date_part

2002-11-02 Thread Josh Berkus
Tom, > (IMHO, the SQL spec is really brain-dead to define timestamp without > time zone as the default form of timestamp; the variant with time zone > is much more useful for most applications. It's far too easy to shoot > yourself in the foot when working with zoneless timestamps --- usually >

Re: [SQL] Timezone issue with date_part

2002-11-02 Thread Ken Kennedy
On Sat, Nov 02, 2002 at 09:17:14AM -0500, Tom Lane wrote: > Ken Kennedy <[EMAIL PROTECTED]> writes: > > [ date_part('epoch') is wrong for a timestamp value ] > > The epoch value is really only correct for a TIMESTAMP WITH TIME ZONE > value. If you apply date_part('epoch') to a timestamp without t

Re: [SQL] Timezone issue with date_part

2002-11-02 Thread Tom Lane
Ken Kennedy <[EMAIL PROTECTED]> writes: > [ date_part('epoch') is wrong for a timestamp value ] The epoch value is really only correct for a TIMESTAMP WITH TIME ZONE value. If you apply date_part('epoch') to a timestamp without time zone, as you appear to be doing here, what you will get is the e