Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 10C7A9FB1E4 for ; Fri, 5 Jan 2007 23:34:19 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 38999-07 for ; Fri, 5 Jan 2007 23:34:12 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 144CF9FB1E2 for ; Fri, 5 Jan 2007 23:34:12 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id l063UMfr025795; Fri, 5 Jan 2007 22:30:22 -0500 (EST) To: "Do, Leon \(Leon\)" cc: "Kris Jurka" , "Oliver Jowett" , "Dave Cramer" , "imad" , pgsql-jdbc@postgresql.org Subject: Re: help with front/backend datatype converting In-reply-to: References: Comments: In-reply-to "Do, Leon \(Leon\)" message dated "Fri, 05 Jan 2007 15:46:09 -0600" Date: Fri, 05 Jan 2007 22:30:22 -0500 Message-ID: <25794.1168054222@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/51 X-Sequence-Number: 16416 "Do, Leon \(Leon\)" writes: > It can takes any input. You cann't assume it only return hh:mm. Yes you can --- see EncodeTimezone(). I concur with Kris' opinion that the driver need not cater for output formats the server will never generate. Especially not if it's explicitly setting DateStyle, as I seem to remember it does. One thing that possibly *does* need fixed as of 8.2 is that the server can generate hh:mm:ss if the timezone has a fractional-minute UTC offset. I do not believe there are any modern timezones that do, but quite a lot do if you check dates 100 or so years ago. regression=# set timezone = 'Europe/Dublin'; SET regression=# select now() - '100 years'::interval; ?column? ------------------------------------- 1907-01-06 03:28:22.483631-00:25:21 (1 row) regards, tom lane