Lists: | pgsql-bugs |
---|
From: | Kay-Uwe Genz <kug1977(at)web(dot)de> |
---|---|
To: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Problem with timezones |
Date: | 2003-06-24 18:47:36 |
Message-ID: | 52C216A4-A674-11D7-9D5A-000A27B51AF2@web.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-bugs |
Hi,
I've created a table with a column 'utc time with time zone' and then
INSERT '0:00:00 XXX' where XXX is the tiemzone.
In the table are all timezones and if I select with
SELECT (timezone_hour FROM utc) FROM timezones;
PostGreSQL return all timeszones with sign (example for IDLW it should
be -12; 12 is returned).
Is this a bug or is this me mistake?
I've PostGreSQL Version 7.3.2 running on a Mac OS X 10.2 (G3).
Thanks for help.
Kay-Uwe Genz
From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Kay-Uwe Genz <kug1977(at)web(dot)de> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: Problem with timezones |
Date: | 2003-06-28 03:38:43 |
Message-ID: | 15381.1056771523@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-bugs |
Kay-Uwe Genz <kug1977(at)web(dot)de> writes:
> Is this a bug or is this me mistake?
Yours I think. Type TIME WITH TIME ZONE stores a time of day
(from 00:00:00 to 23:59:59) plus a time zone (some offset east
or west of Greenwich --- I think we allow up to plus or minus
13 hours). I see nothing in the concept that would allow for
a negative local-time-of-day.
If you need a signed time-like datatype, maybe INTERVAL is closer
to what you're looking for.
regards, tom lane