Re: Absolute value of intervals

Поиск
Список
Период
Сортировка
От Lew
Тема Re: Absolute value of intervals
Дата
Msg-id hcil7v$o2q$2@news.albasani.net
обсуждение исходный текст
Ответ на Re: Absolute value of intervals  (Jeff Davis <pgsql@j-davis.com>)
Список pgsql-general
Jeff Davis wrote:
> On Thu, 2009-10-29 at 16:39 -0700, Scott Bailey wrote:
>> But there is some ambiguity around the length of a month. So INTERVAL '1
>> month - 30 days' =  INTERVAL '0 days' = INTERVAL '-1 month +30 days'.
>> But when added to a date, it makes no change for months with 30 days,
>> adds 1 day for months with 31 days and subtracts 2 days for February.

or 1 day for February, 2012.

--
Lew

В списке pgsql-general по дате отправления:

Предыдущее
От: Lew
Дата:
Сообщение: Re: Absolute value of intervals
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: What order of steps of the postgres when you change information in the table?