Re: Find all the dates in the calendar week?

Поиск
Список
Период
Сортировка
От Thomas Lockhart
Тема Re: Find all the dates in the calendar week?
Дата
Msg-id 39649935.6CE3056A@alumni.caltech.edu
обсуждение исходный текст
Ответ на Find all the dates in the calendar week?  (Stephane Bortzmeyer <bortzmeyer@pasteur.fr>)
Ответы Re: Find all the dates in the calendar week?  (Karel Zak <zakkr@zf.jcu.cz>)
Re: Find all the dates in the calendar week?  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-general
>  yes, my current to_char() is almost compatible with oracle, but I need
> last two features --- IYYY (ISO-year) and IW (ISO-week). But I not explore
> it exactly yet. I mean that current (PG's) week-of-year is like ISO or not?

Yes. 'week' is "ISO week" (new for 7.0 afaicr). And it wasn't *entirely*
trivial to implement, so you may want to steal code for to_char() ;)

I just didn't implement the corresponding "year" code at least partly
because I wasn't sure what to call it. 'iyear' seems like a pretty good
choice, or should it be 'isoyear'? 'year' is already used, obviously,
and if 'iyear' is chosen then perhaps I should change 'week' to 'iweek'
for consistancy. Comments?

                     - Thomas

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: PostgreSQL & the BSD License
Следующее
От: Karel Zak
Дата:
Сообщение: Re: Find all the dates in the calendar week?