From: Markus Schaber <schabi@logix-tt.com>
To: Scott Marlowe <smarlowe@g2switchworks.com>
Cc: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: Stephan Szabo <sszabo@megazone.bigpanda.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Milen A. Radev <milen@radev.net>
Cc: pgsql-sql@postgresql.org
Cc: pgsql-hackers@postgresql.org
Subject: Re: [SQL] Interval subtracting
Date: Wed, 08 Mar 2006 13:07:27 +0100
Message-ID: <440EC8FF.9080201@logix-tt.com> (raw)
In-Reply-To: <1141245396.18820.16.camel@state.g2switchworks.com>
References: <200603012027.k21KRk423759@candle.pha.pa.us>
<1141245396.18820.16.camel@state.g2switchworks.com>
Hi, Scott,
Scott Marlowe wrote:
>>But it isn't '-2 months, -1 day'. I think what you are saying is what I
>>am saying, that we should make the signs consistent.
> Pretty much. It just seems wrong to have different signs in what is
> essentially a single unit.
>
> We don't say 42 degrees, -12 minutes when measuring arc, do we? Then
> again, maybe some folks do. It just seems wrong to me.
But we say "quarter to twelve", at least in some areas on this planet.
The problem is that months have different lengths. '2 months - 1 day'
can be '1 month 27 days', '1 month 28 days', '1 month 29 days' or '1
month 30 days', depending on the timestamp we apply the interval.
Markus
--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf. | Software Development GIS
Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: schabi@logix-tt.com, smarlowe@g2switchworks.com, pgman@candle.pha.pa.us, sszabo@megazone.bigpanda.com, tgl@sss.pgh.pa.us, milen@radev.net, pgsql-hackers@postgresql.org
Subject: Re: [SQL] Interval subtracting
In-Reply-To: <440EC8FF.9080201@logix-tt.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox