X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 8EB80D1B446 for ; Thu, 4 Dec 2003 18:13:32 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 87203-05 for ; Thu, 4 Dec 2003 14:13:02 -0400 (AST) Received: from mta3.snet.net (mta3.snet.net [204.60.203.69]) by svr1.postgresql.org (Postfix) with ESMTP id 24FE1D1B43F for ; Thu, 4 Dec 2003 14:12:56 -0400 (AST) Received: from 192.168.1.203 (167.95.252.64.snet.net [64.252.95.167]) by mta3.snet.net (8.12.3/8.12.3/SNET-smtp-1.2/D-1.1.1.1/O-1.1.1.1) with ESMTP id hB4ICoaW018461 for ; Thu, 4 Dec 2003 13:12:51 -0500 (EST) From: Wei Weng To: pgsql-sql@postgresql.org Subject: How do I convert an interval into integer? Date: Thu, 4 Dec 2003 13:09:12 -0500 User-Agent: KMail/1.5.4 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200312041309.12704.wweng@kencast.com> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/35 X-Sequence-Number: 16201 I want to convert an interval (from substraction between two timestamps) into a integer that represents how many seconds that interval has. How do I do that? I am using postgresql 7.3.1 Thanks Wei