Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 3E2492E0086 for ; Thu, 5 Jun 2008 16:52:25 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 74335-04 for ; Thu, 5 Jun 2008 16:52:19 -0300 (ADT) X-Greylist: delayed 00:42:19.718853 by SQLgrey-1.7.6 Received: from mail.int.journyx.com (mail.journyx.com [66.219.41.227]) by developer.postgresql.org (Postfix) with ESMTP id A3BCC2E008C for ; Thu, 5 Jun 2008 16:52:21 -0300 (ADT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.int.journyx.com (Postfix) with ESMTP id C5CD13E210A for ; Thu, 5 Jun 2008 14:09:47 -0500 (CDT) X-Virus-Scanned: amavisd-new at Received: from mail.int.journyx.com ([127.0.0.1]) by localhost (mail.int.journyx.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Xsg9YJEzrFcX for ; Thu, 5 Jun 2008 14:09:32 -0500 (CDT) Received: from whitneys (dhcp-100-201.int.journyx.com [192.168.100.201]) by mail.int.journyx.com (Postfix) with ESMTP id 926723E20E8 for ; Thu, 5 Jun 2008 14:09:32 -0500 (CDT) From: "Scott Whitney" To: Subject: Re: select current UTC time ? Date: Thu, 5 Jun 2008 14:12:36 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 In-Reply-To: <1CA79562-D691-430C-B1EC-9931EF0BF7C2@kevinkempterllc.com> Thread-Index: AcjHPxRymb6ZzFUFQ4+ifFeDi4d6jAAAPojQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 Message-Id: <20080605190932.926723E20E8@mail.int.journyx.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200806/43 X-Sequence-Number: 29381 This seems to work for me: template1=# select now() at time zone 'UTC'; timezone ---------------------------- 2008-06-05 19:08:50.590806 (1 row) template1=# select now(); now ------------------------------- 2008-06-05 14:08:57.278037-05 Cheers. -----Original Message----- From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of kevin kempter Sent: Jun 05, 2008 2:01 PM To: pgsql-admin@postgresql.org Subject: [ADMIN] select current UTC time ? Hi List; How could I select the current UTC time ? now() cast as a timestamp at UTC is wrong because it takes now() and says: if it were now() time UTC what would it be here (timezone) and returns that. I want to return 'what time is it now in UTC ?' Thanks in advance... /Kevin -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin