Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WD8BF-0007fS-Ev for pgsql-sql@arkaria.postgresql.org; Tue, 11 Feb 2014 07:54:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WD8BE-0003mT-Tc for pgsql-sql@arkaria.postgresql.org; Tue, 11 Feb 2014 07:54:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WD8BC-0003mK-Sp for pgsql-sql@postgresql.org; Tue, 11 Feb 2014 07:54:54 +0000 Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WD8B5-0002SF-Qo for pgsql-sql@postgresql.org; Tue, 11 Feb 2014 07:54:54 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1WD8B3-0007pU-NR for pgsql-sql@postgresql.org; Mon, 10 Feb 2014 23:54:45 -0800 Date: Mon, 10 Feb 2014 23:54:45 -0800 (PST) From: rawi To: pgsql-sql@postgresql.org Message-ID: <1392105285704-5791371.post@n5.nabble.com> Subject: Time AT TIME ZONE: false result using offset instead of time zone name MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.8 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org Hi, I am living in the Central European Time (CET == GMT+1) SELECT CURRENT_TIMESTAMP ; now timestamp with time zone ---------------------------- 2014-02-11 08:21:52.83588+01 And I want this without time zone but also for my own time zone (checking AT TIME ZONE); sure, I get it correct... the same... SELECT CURRENT_TIMESTAMP AT TIME ZONE 'CET'; timezone timestamp without time zone ---------------------------- 2014-02-11 08:22:39.586382 But it would be easier to ask a specific time offset (got from a client around the world), so for me +01 hour: SELECT CURRENT_TIMESTAMP AT TIME ZONE 'UTC+01'; timezone timestamp without time zone --------------------------- 2014-02-11 06:23:07.043479 !!! Two hours earlyer, one hour to the east (Azores), not to the west of Greenwich. To get my time one hour west from Greenwich I have to ask: SELECT CURRENT_TIMESTAMP AT TIME ZONE 'UTC-01'; Is this inverse calculation intently? Thank you! Regards, Rawi -- View this message in context: http://postgresql.1045698.n5.nabble.com/Time-AT-TIME-ZONE-false-result-using-offset-instead-of-time-zone-name-tp5791371.html Sent from the PostgreSQL - sql mailing list archive at Nabble.com. -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql