Re: Timestamp with time zone - Mailing list pgsql-novice

From Xavier Robin
Subject Re: Timestamp with time zone
Date
Msg-id 4C2C42D8.5000302@bluewin.ch
Whole thread Raw
In response to Re: Timestamp with time zone  (Tim Landscheidt <tim@tim-landscheidt.de>)
List pgsql-novice
Le 30.06.2010 18:59, Tim Landscheidt a écrit :
> Xavier Robin <xavier.robin@bluewin.ch> wrote:
>> Just one more question to make sure I got it all right:
>
>> EXTRACT(timezone FROM <a timestamptz here>)
>
>> will *always* return 0? Because the doc suggests that positive or
>> negative values can be returned…
>
> No, it will return the offset of your current time zone:

I got it, thanks a lot! :)
So WITH TIME ZONE was not at all what I expected (thought it would store
the time zone of the timestamp entered). I'll see if switching to
TIMESTAMP WITHOUT TIME ZONE is what I need now.

Thanks all for your answers and insights.

Xavier


Attachment

pgsql-novice by date:

Previous
From: Mick
Date:
Subject: Re: null vs empty string
Next
From: Thom Brown
Date:
Subject: Re: null vs empty string