Re: Dates and daylight saving time

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Dates and daylight saving time
Дата
Msg-id 4211.1012502890@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Dates and daylight saving time  (Thomas Lockhart <lockhart@fourpalms.org>)
Список pgsql-bugs
Thomas Lockhart <lockhart@fourpalms.org> writes:
> In the long run, we should probably implement some exact date/interval
> arithmetic instead of relying on timestamp types in the intermediate
> calculations.

AFAIK type "date" solves his problem just fine, and there's no need to
mess with timestamps and intervals at all.  But in the long run it'd
be nice to handle this sort of situation more intuitively.

I have suggested more than once that type interval ought to have three
components not two: months, days, and seconds.  Just as a month is not
a fixed number of days, a day is not a fixed number of seconds.  Not
sure if we can get away with that when SQL92 believes otherwise, however.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Dates and daylight saving time
Следующее
От: "Annie Bai"
Дата:
Сообщение: Re: date format problem