Re: Imprecision of DAYS_PER_MONTH

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: Imprecision of DAYS_PER_MONTH
Дата
Msg-id 87ek9sc4uj.fsf@stark.xeocode.com
обсуждение исходный текст
Ответ на Re: Imprecision of DAYS_PER_MONTH  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: Imprecision of DAYS_PER_MONTH  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:

> > > BTW, if you actually wanted to improve readability, defining a
> > > SECS_PER_YEAR value and replacing the various occurrences of
> > > "36525 * 864" with it would help.
> > > 
> > IIRC the number of seconds in a year is far from a constant.
> 
> Yes, I added a comment mentioning that we don't track leap seconds.
> And this doesn't handle crossing uneven daylight savings time intervals.

It doesn't even represent leap years, never mind leap seconds.

-- 
greg



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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: [PATCHES] Roles - SET ROLE Updated
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [PATCHES] Roles - SET ROLE Updated