X-Original-To: pgsql-sql@postgresql.org Received: from fzkmail2.fzk.de (fzkmail2.fzk.de [141.52.27.52]) by postgresql.org (Postfix) with SMTP id F3F88476178 for ; Mon, 17 Mar 2003 09:26:33 -0500 (EST) Received: FROM resy5.fzk.de BY fzkmail2.fzk.de ; Mon Mar 17 15:26:37 2003 +0100 Received: œby rodos.fzk.de with ESMTP (8.8.6 (PHNE_17135)/8.7.1) id PAA06684; Mon, 17 Mar 2003 15:26:37 +0100 (MET) Message-ID: <3E75DB1C.CA0A3F06@rodos.fzk.de> Date: Mon, 17 Mar 2003 15:26:36 +0100 From: Christoph Haller X-Mailer: Mozilla 4.77 [en] (X11; U; HP-UX B.10.20 9000/780) X-Accept-Language: en MIME-Version: 1.0 To: pgsql-sql@postgresql.org Cc: jasiek@klaster.net Subject: Re: Formatting intervals.. Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 7bit X-Archive-Number: 200303/397 X-Sequence-Number: 12436 > > >>It doesn't make sense. You don't have whole date, so how long should > >>month be? 28? 29? 30? 31? > >> > > > > It does. As long the months between January and October are. > > So > > select age ('10-10-1999'::timestamp , '1-1-1999'::timestamp ) ; > > age > > --------------- > > 9 mons 9 days > > (1 row) > > > Your example above is related to some real date, so we know how many > days each month have. When using interval - we don't know how many days > each month should have. beacuse interval is unrelated to date. > Sorry, but it wasn't my example, it was Mallah's. But of course you're right on "interval is unrelated to date". Regards, Christoph