DOW is 0-based?

Поиск
Список
Период
Сортировка
От Igal @ Lucee.org
Тема DOW is 0-based?
Дата
Msg-id 860b4e3a-b157-8a70-8a5b-deb4a61e1494@lucee.org
обсуждение исходный текст
Ответы Re: DOW is 0-based?  (Igor Korot <ikorot01@gmail.com>)
Re: DOW is 0-based?  (Thomas Kellerer <spam_eater@gmx.net>)
Список pgsql-general

Is there a rational reason why Day of the Week is 0-based, i.e. Sunday (0) to Saturday (6) instead of the more intuitive Sunday (1) to Saturday (7)?

    SELECT date_part('dow', current_date);

https://www.postgresql.org/docs/current/static/functions-datetime.html

Thanks,

Igal Sapir
Lucee Core Developer
Lucee.org

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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: Odd behavior with 'currval'
Следующее
От: Igor Korot
Дата:
Сообщение: Re: DOW is 0-based?