Received: from nyc.rr.com (nycsmtp2fb.rdc-nyc.rr.com [24.29.99.78]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f0PNFZq32867 for ; Thu, 25 Jan 2001 18:15:35 -0500 (EST) (envelope-from stevel@bluetuna.com) Received: from [24.168.80.161] ([24.168.80.161]) by nyc.rr.com with Microsoft SMTPSVC(5.5.1877.357.35); Thu, 25 Jan 2001 18:16:29 -0500 Mime-Version: 1.0 X-Sender: stevenl@pop.dnai.com Message-Id: In-Reply-To: <5.0.2.1.0.20010125230629.05b2d138@193.189.189.100> References: <5.0.2.1.0.20010125230629.05b2d138@193.189.189.100> Date: Thu, 25 Jan 2001 18:14:58 -0500 To: pgsql-general@postgresql.org From: Steve Leibel Subject: timestamp calculations Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Archive-Number: 200101/1244 X-Sequence-Number: 3539 Hello, I'm converting a mysql db to postgres and ran into this line of code: $SQL = "select username from users where user_id = ? AND session = ? AND ADDDATE(last_login, INTERVAL 30 MINUTE)>CURRENT_TIMESTAMP() How do I implement adddate to get this kind of funcionality? Thanks, Steve Leibel