Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 9784A1337BE8 for ; Mon, 31 Jan 2011 12:51:19 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 47018-02 for ; Mon, 31 Jan 2011 16:51:12 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from jupiter.marktest.pt (delta.marktest.pt [80.251.174.116]) by mail.postgresql.org (Postfix) with ESMTP id 869311337BB4 for ; Mon, 31 Jan 2011 12:51:06 -0400 (AST) Received: from Proteu (proteu.marktest.pt [10.61.90.54]) by jupiter.marktest.pt with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id ZQ59L567; Mon, 31 Jan 2011 16:51:05 -0000 Message-ID: <26847BFD4C364A2B83F0EF622CB58B46@marktestcr.marktest.pt> From: "Oliveiros d'Azevedo Cristina" To: "Kenneth Marshall" , "Emi Lu" Cc: References: <4D46DA53.9050402@encs.concordia.ca> <20110131163927.GF24931@aart.is.rice.edu> Subject: Re: Get days between two dates? Date: Mon, 31 Jan 2011 16:51:05 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.471 tagged_above=-5 required=5 tests=BAYES_00=-1.9, STOX_REPLY_TYPE=0.439, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201101/128 X-Sequence-Number: 35075 That's precisely what I think.. :-| ----- Original Message ----- From: "Kenneth Marshall" To: "Emi Lu" Cc: Sent: Monday, January 31, 2011 4:39 PM Subject: Re: [SQL] Get days between two dates? > On Mon, Jan 31, 2011 at 10:50:43AM -0500, Emi Lu wrote: >> Good morning, >> >> Is there an existing method to get days between two dates? >> >> For example, >> >> select '2010-01-01'::date - '1999-10-12'::date >> >> Returns how many days. >> >> Thank you, >> >> -- >> Lu Ying >> > > Didn't you just answer your own question? > > Cheers, > Ken > > -- > Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-sql