Re: converting a specified year and week into a date

Поиск
Список
Период
Сортировка
От A. Kretschmer
Тема Re: converting a specified year and week into a date
Дата
Msg-id 20070214093351.GJ1303@a-kretschmer.de
обсуждение исходный текст
Ответ на Re: converting a specified year and week into a date  (Ron Johnson <ron.l.johnson@cox.net>)
Ответы Re: converting a specified year and week into a date  (Ron Johnson <ron.l.johnson@cox.net>)
Список pgsql-general
am  Wed, dem 14.02.2007, um  3:10:17 -0600 mailte Ron Johnson folgendes:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 02/14/07 02:52, A. Kretschmer wrote:
> > am  Tue, dem 13.02.2007, um 13:56:15 -0800 mailte vanessa folgendes:
> [snip]
> >
> > test=*# select get_week(2007,2);
> >         get_week
> > -------------------------
> >  08-01-2007 - 14-01-2007
> > (1 row)
>
> Is that week #2?
>
> If weeks start on Sunday (which is what they do in the US), then
> week #2 would either start on 04-Jan or 11-Jan (depending on whether
> the 01-Jan partial week is considered week #1 or week #0).

Depends, there are different definitions. I have a calendar here and in
this the 2. week 2007 starts on monday, 08-01-2007.

It's like with http://personal.ecu.edu/mccartyr/isowdcal.html, but i
know, in america weeks starts with sunday.


Andreas
--
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA   http://wwwkeys.de.pgp.net

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

Предыдущее
От: Ron Johnson
Дата:
Сообщение: Re: converting a specified year and week into a date
Следующее
От: Ron Johnson
Дата:
Сообщение: Re: converting a specified year and week into a date