Re: Setting week starting day

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Setting week starting day
Дата
Msg-id 20070309190231.GA2235@wolff.to
обсуждение исходный текст
Ответ на Re: Setting week starting day  (Jorge Godoy <jgodoy@gmail.com>)
Ответы Re: Setting week starting day  (Jorge Godoy <jgodoy@gmail.com>)
Список pgsql-general
On Fri, Mar 09, 2007 at 14:59:35 -0300,
  Jorge Godoy <jgodoy@gmail.com> wrote:
> It is not hard to calculate, as you can see... but it would be nice if
> "date_trunc('week', date)" could do that directly.  Even if it became
> "date_trunc('week', date, 4)" or "date_trunc('week', date, 'Wednesday')" it
> would be nice...  :-)  And that is what I was trying to ask ;-)

Use date_trunc('week', current_day + 1) and date_trunc('dow', current_day + 1)
to have a one day offset from the standard first day of the week.

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

Предыдущее
От: Scott Marlowe
Дата:
Сообщение: Re: "oracle to postgresql" conversion
Следующее
От: Sven Willenberger
Дата:
Сообщение: Re: Anyone know a good opensource CRM that actually installs with Posgtres?