Re: Absolute value of intervals - Mailing list pgsql-general

From Marko Kreen
Subject Re: Absolute value of intervals
Date
Msg-id e51f66da0910300445s431c0fa7p861ac1b285a88f3b@mail.gmail.com
Whole thread Raw
In response to Re: Absolute value of intervals  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Absolute value of intervals
List pgsql-general
On 10/30/09, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Jeff Davis <pgsql@j-davis.com> writes:
>  > Yes, that is a strange case. When you can't tell if an interval is
>  > positive or negative, how do you define the absolute value?
>
> That was the point of my '1 day -25 hours' example.  Whether you
>  consider that positive or negative seems mighty arbitrary.

If I can add it to a timestamp and get a deterministic result,
then we already have decided how to interpret the arbitrariness.

Might as well be consistent then.

--
marko

pgsql-general by date:

Previous
From: Sam Mason
Date:
Subject: Re: Absolute value of intervals
Next
From: Sam Mason
Date:
Subject: Re: Absolute value of intervals