Re: pgsql: Add time/date macros for code clarity: #define DAYS_PER_YEAR

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: Add time/date macros for code clarity: #define DAYS_PER_YEAR
Дата
Msg-id 14991.1121919567@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pgsql: Add time/date macros for code clarity: #define DAYS_PER_YEAR  (momjian@svr1.postgresql.org (Bruce Momjian))
Ответы Re: pgsql: Add time/date macros for code clarity: #define
Список pgsql-committers
momjian@svr1.postgresql.org (Bruce Momjian) writes:
> Log Message:
> -----------
> Add time/date macros for code clarity:

>     #define DAYS_PER_YEAR   365.25
>     #define MONTHS_PER_YEAR 12
>     #define DAYS_PER_MONTH  30
>     #define HOURS_PER_DAY   24

Considering that only one of these four is actually an accurate
constant, I have to question the usefulness of this.

            regards, tom lane

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