Re: date_part('timezone_hour') - Mailing list pgsql-general

From Tom Lane
Subject Re: date_part('timezone_hour')
Date
Msg-id 16877.1063721304@sss.pgh.pa.us
Whole thread Raw
In response to date_part('timezone_hour')  (Jukka Väänänen <jukka.vaananen@batman.jypoly.fi>)
List pgsql-general
=?ISO-8859-1?Q?Jukka_V=E4=E4n=E4nen?= <jukka.vaananen@batman.jypoly.fi> writes:
> using postgresql 7.3.1:

> # select current_timestamp,date_part('timezone_hour',current_timestamp);
>           timestamptz          | date_part
> -------------------------------+-----------
>  2003-09-16 10:51:58.228489+03 |        -3
> (1 row)

> I would expect date_part('timezone_hour') to return 3. But it returns -3
> instead. Why so?

Because someone got it backwards ;-).  We have reversed the sign of this
result for 7.4.

            regards, tom lane

pgsql-general by date:

Previous
From: "Dave [Hawk-Systems]"
Date:
Subject: update field using substrings of another field
Next
From: Doug McNaught
Date:
Subject: Re: update field using substrings of another field