Re: Absolute value of intervals

Поиск
Список
Период
Сортировка
От Marko Kreen
Тема Re: Absolute value of intervals
Дата
Msg-id e51f66da0910300445s431c0fa7p861ac1b285a88f3b@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Absolute value of intervals  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Absolute value of intervals
Список 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 по дате отправления:

Предыдущее
От: Sam Mason
Дата:
Сообщение: Re: Absolute value of intervals
Следующее
От: Sam Mason
Дата:
Сообщение: Re: Absolute value of intervals