Re: date - date returns integer?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: date - date returns integer?
Дата
Msg-id 14000.1109997380@sss.pgh.pa.us
обсуждение исходный текст
Ответ на date - date returns integer?  (Andrew Hammond <ahammond@ca.afilias.info>)
Список pgsql-sql
Andrew Hammond <ahammond@ca.afilias.info> writes:
> Should date - date return type integer, not interval?

If we made it return interval then there would be all sorts of timezone
dependencies introduced (think about DST crossings) ... which is
generally something you don't want to think about when doing date
arithmetic.  I think the definitions of these operators are fine.
        regards, tom lane


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

Предыдущее
От: Bret Hughes
Дата:
Сообщение: Re: definative way to place secs from epoc into timestamp
Следующее
От: Tom Lane
Дата:
Сообщение: Re: truncating table permissions