Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id BD5199FB63D for ; Thu, 14 Jun 2007 04:39:36 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 66660-01 for ; Thu, 14 Jun 2007 04:39:24 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.234]) by postgresql.org (Postfix) with ESMTP id 51E7F9FB7E4 for ; Thu, 14 Jun 2007 04:39:33 -0300 (ADT) Received: by wr-out-0506.google.com with SMTP id 68so398073wri for ; Thu, 14 Jun 2007 00:39:32 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=G/zHEUX6j/GNs+ckeZOxEOoBAc3seZmhhs2G8yevhyQfIOoU5dPYWkGmhcMebfmNN9m5nfU1NkFDgjZ04QzkzLVtw6Cql8u1cTR14O/x2MgAW5EFO2e7iDbyC48NCsvNO2hqLisqmRBomp8gX1GR88H3dd5R+h3ljcMey+nVyXo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=dP7y+L4L4hKkaT8fNHor8fJpa1zCbLKK8J81mYIagUCtJ6HT5qY84X3PhGNkx0xycxjIsnYK+zl+DKhuIZRJYlI8+trxK4wnRCw7jvs6UZAvgiZJKXeMeiJtHct/u5omozOj+6xggkpCQaOxNuPcsGHE4nldAESE+elvJsWhYek= Received: by 10.142.255.14 with SMTP id c14mr77943wfi.1181806771822; Thu, 14 Jun 2007 00:39:31 -0700 (PDT) Received: by 10.142.80.10 with HTTP; Thu, 14 Jun 2007 00:39:31 -0700 (PDT) Message-ID: <162867790706140039j569676a3na70918a65e542f58@mail.gmail.com> Date: Thu, 14 Jun 2007 09:39:31 +0200 From: "Pavel Stehule" To: "A. Kretschmer" Subject: Re: function to find difference between in days between two dates Cc: pgsql-sql@postgresql.org In-Reply-To: <20070614070246.GB16034@a-kretschmer.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <006101c7ae4c$ed7edbd0$170211ac@LIONKING.COM> <20070614070246.GB16034@a-kretschmer.de> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/103 X-Sequence-Number: 28593 2007/6/14, A. Kretschmer : > am Thu, dem 14.06.2007, um 11:56:15 +0530 mailte Ashish Karalkar folgendes: > > Hello all, > > > > Is there any function to find differences in days between two dates? > > Yes, age(). > > there is difference date - date --> integer age(date::timestamp, date::timestamp) --> interval regards Pavel