Received: from smtp.stellison.co.uk ([212.56.66.225]) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id f02BNGL70162 for ; Tue, 2 Jan 2001 06:23:16 -0500 (EST) (envelope-from francis@stellison.co.uk) Received: (qmail 25320 invoked from network); 2 Jan 2001 11:23:58 -0000 Received: from unknown (HELO neo) (unknown) by unknown with SMTP; 2 Jan 2001 11:23:58 -0000 From: "Francis Solomon" To: "Boris" , Subject: RE: Date/Time problem -((( Date: Tue, 2 Jan 2001 11:23:49 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <7225221807.20001230013625@x-itec.de> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Importance: Normal X-Archive-Number: 200101/12 X-Sequence-Number: 673 Hi Boris, I know Kaare Rasmussen posted a URL to the online documentation already, but this might be a direct solution to your problem: DELETE FROM onlineuser WHERE datum < ('now'::datetime - '5 minutes'::interval); Hope this helps Francis Solomon > Hello > > I am moving from MySQL to Postgres and while converting my sql code I > have a lot of problems with this construction: > > ($ze is current time - 300 secounds): > > delete from onlineuser where datum < FROM_UNIXTIME($ze) > > Is there any Date/Time function in PGSQL? I want as shown in this > example delete entries older than 300 secounds. > > I postet to the list because I have found no solution in the > tutorials and search-engine (maybe searched with wrong words?) > > It would be great if someone could help me / point me to the right > way... > > -- > Boris