date_part('dow', '2001-03-25') ??! - Mailing list pgsql-bugs

From Dmitry Gercog
Subject date_part('dow', '2001-03-25') ??!
Date
Msg-id 3ABF0145.6A6448CE@omnet.ru
Whole thread Raw
Responses Re: date_part('dow', '2001-03-25') ??!
List pgsql-bugs
Hi!

Why?

SELECT date_part('dow', '2001-03-24');
return '6'

and

SELECT date_part('dow', '2001-03-25');

return '6', but must be '0'!!!

For last Sunday '2001-03-18' this construction return '0'!

My system SuSe Linux 7.0
PostgreSQL version 7.0.3

When I use system command "date":

date +%w -d '2001-03-25'

I'm get correct result = '0'!

Dmitry Gercog.

pgsql-bugs by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: Deleting Objects...
Next
From: Karel Zak
Date:
Subject: Re: date_part('dow', '2001-03-25') ??!