BUG #2443: 1 hour error at date calculation

Поиск
Список
Период
Сортировка
От nikolaus klepp
Тема BUG #2443: 1 hour error at date calculation
Дата
Msg-id 200605180957.k4I9vxZw019516@wwwmaster.postgresql.org
обсуждение исходный текст
Ответы Re: BUG #2443: 1 hour error at date calculation  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
The following bug has been logged online:

Bug reference:      2443
Logged by:          nikolaus klepp
Email address:      dr.klepp@gmx.at
PostgreSQL version: 8.0.3, 7.4.8
Operating system:   suse linux 10.0
Description:        1 hour error at date calculation
Details:

i want to calculate the number of days in a month. when I do it this way:

select date_trunc('month', date_trunc('month', date('2006-3-1'))+interval
'1month')-date_trunc('month', date('2006-3-1'));

the result is: 30 days 23:00:00
that is obviously wrong.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #2441: All useable indexes for an IN are used, not just one
Следующее
От: gsmd@gmx-topmail.de
Дата:
Сообщение: sequences problem