Re: Problems with to_char(created, 'WW')

Поиск
Список
Период
Сортировка
От Tomasz Myrta
Тема Re: Problems with to_char(created, 'WW')
Дата
Msg-id 3DB7D72E.1020700@klaster.net
обсуждение исходный текст
Ответ на Problems with to_char(created, 'WW')  (Andreas Joseph Krogh <andreak@officenet.no>)
Список pgsql-sql
Uz.ytkownik Andreas Joseph Krogh napisa?:
> 
> Now - my question is, why is monday 21. in week 42, but tuesday 22. in week 
> 43?

Read the documentation - 4.7. Data Type Formatting Functions
"WW - week number of year (1-53) where first week start on the first day 
of the year"

Year 2002 started on Tuesday, so monday is still week 42, but tuesday is 
week 43.

Tomasz Myrta



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

Предыдущее
От: Karel Zak
Дата:
Сообщение: Re: Problems with to_char(created, 'WW')
Следующее
От: Achilleus Mantzios
Дата:
Сообщение: Re: ORDER the result of a query by date