Re: Timestamp problems...wrong weeks.

Поиск
Список
Период
Сортировка
От Andrew Sullivan
Тема Re: Timestamp problems...wrong weeks.
Дата
Msg-id 20040429194132.GE2058@phlogiston.dyndns.org
обсуждение исходный текст
Ответ на Timestamp problems...wrong weeks.  ("Campano, Troy" <Troy.Campano@LibertyMutual.com>)
Ответы Re: Timestamp problems...wrong weeks.  (Jean-Luc Lachance <jllachan@sympatico.ca>)
Список pgsql-general
On Thu, Apr 29, 2004 at 02:42:49PM -0400, Campano, Troy wrote:
>
> This is causing my reports to print out incorrect data.
> Do you know why this would happen? Am I doing something wrong?

I think you may be misunderstanding what "W" means:

week of month (1-5) (The first week starts on the first day of the
month.)

In April 2004, 1 April is Thurs, so

1-7 -> W1
8-14 -> W2
15-21 -> W3
22-28 -> W4
29-30 -> W5 == W1 of May

This is also why 8 May is in week 2 of May, but 7 May is on week 1.

A

--
Andrew Sullivan  | ajs@crankycanuck.ca

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

Предыдущее
От: Andrew Sullivan
Дата:
Сообщение: Re: postgresql idle
Следующее
От: "Gregory S. Williamson"
Дата:
Сообщение: "Idle in Transaction" and hung connections