X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 24A6853498 for ; Wed, 6 Apr 2005 16:13:35 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 86984-09 for ; Wed, 6 Apr 2005 15:13:30 +0000 (GMT) Received: from web1-glo.biscit.net (web1-glo.biscit.net [82.195.96.53]) by svr1.postgresql.org (Postfix) with ESMTP id 073F953497 for ; Wed, 6 Apr 2005 16:13:28 +0100 (BST) Received: from bolek.coachhouse (host62-7-130-170.webport.bt.net [62.7.130.170]) by web1-glo.biscit.net (8.10.2/8.10.2) with ESMTP id j36FDMA05930 for ; Wed, 6 Apr 2005 16:13:22 +0100 Received: (Exim 3.36) #1 (Debian)) protocol: esmtp id 1DJC8f-0004i5-00 ; Wed, 06 Apr 2005 16:08:17 +0100 Message-ID: <4253FB61.2050502@numerixtechnology.de> Date: Wed, 06 Apr 2005 16:08:17 +0100 From: T E Schmitz Reply-To: mailreg@numerixtechnology.de User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: TIMESTAMP / summertime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.209 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200504/56 X-Sequence-Number: 20949 Hello, I *detest* British summertime. This year it took me two days to adjust. Now I am realizing that my program might need some adjusting too: Joking aside, I need some advice regarding TIMESTAMP colums and I can't quite get my head round this at the moment: I created a table TRANSAKTION with a TIMESTAMP column without qualifying "with/without time zone". My understanding is that this is equivalent to "TIMESTAMP without time zone"? (I am using Postgres 7.4.) I am accessing the database via a Java client program. The DB access code is generated by an O/R mapper. Client and server are in the same timezone. One of the things I need to do select records from TRANSAKTION, which fall within a certain time period, specified in days: e.g. 1st Mar 2005 to 31st Mar 2005. In other words, I want to grab TRANSAKTIONs >= 1 Mar 00:00 and < 1 Apr 00:00. The generated WHERE clause is: WHERE (TRANSAKTION.THE_TIME>={ts '2005-03-01 00:00:00.0'} AND TRANSAKTION.THE_TIME<{ts '2005-04-01 01:00:00.0'}) Should it be '2005-04-01 00:00:00.0' or 2005-04-01 01:00:00.0' ?? Also, in autumn, when the clocks go back, I need to be able to distinguish between the two double hours. Sorry, if I sound confused. Unfortuantely, this is what I am ;-) -- Regards/Gruß, Tarlika Elisabeth Schmitz