Re: Extract (week from date ) bug.

Поиск
Список
Период
Сортировка
От David Johnston
Тема Re: Extract (week from date ) bug.
Дата
Msg-id 1383165837967-5776440.post@n5.nabble.com
обсуждение исходный текст
Ответ на Extract (week from date ) bug.  (Ubold Hooper <uhooper@amplify.com>)
Список pgsql-bugs
Ubold Hooper wrote
> Why is extract(week from date('2011-01-01')) not identified as week 1?

Because "week" uses the ISO calendar and Week 1, 2011 begins on Monday,
January 3rd.

http://www.postgresql.org/docs/9.3/interactive/functions-datetime.html#FUNCTIONS-DATETIME-EXTRACT

David J.



--
View this message in context: http://postgresql.1045698.n5.nabble.com/Extract-week-from-date-bug-tp5776436p5776440.html
Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.

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

Предыдущее
От: Ubold Hooper
Дата:
Сообщение: Extract (week from date ) bug.
Следующее
От: Jeevan Chalke
Дата:
Сообщение: Re: surprising to_timestamp behavior