X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 8031ED1B550 for ; Thu, 28 Aug 2003 15:37:07 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 35543-08 for ; Thu, 28 Aug 2003 12:36:35 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 49EF6D1B574 for ; Thu, 28 Aug 2003 12:36:35 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h7SFaY5H021198 for ; Thu, 28 Aug 2003 11:36:34 -0400 (EDT) To: pgsql-docs@postgreSQL.org Subject: undocumented date addition/subtraction operators Date: Thu, 28 Aug 2003 11:36:34 -0400 Message-ID: <21197.1062084994@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/82 X-Sequence-Number: 1942 I just realized why the attached and variants are FAQs --- the operators for date minus date, date plus integer, etc are documented nowhere. Will fix. regards, tom lane ------- Forwarded Message Date: Thu, 28 Aug 2003 23:09:44 +0900 From: Alex To: pgsql-general@postgresql.org Subject: [GENERAL] Date Time Function / Age Hi, is there an easy way to get the Difference between 2 dates in Days... as an integer? age('date1','date2') results in x years y days or something similar. but I would like to have the result in number of days as an integer. Thanks for your help Alex ------- End of Forwarded Message