Re: date_trunc problem in HEAD - Mailing list pgsql-hackers

From Kurt Roeckx
Subject Re: date_trunc problem in HEAD
Date
Msg-id 20050313184002.GA7034@roeckx.be
Whole thread Raw
In response to date_trunc problem in HEAD  (Robert Creager <Robert_Creager@LogicalChaos.org>)
Responses Re: date_trunc problem in HEAD
Re: date_trunc problem in HEAD
List pgsql-hackers
On Sun, Mar 13, 2005 at 11:12:32AM -0700, Robert Creager wrote:
> 
> Hey All,
> 
> I goofed with the patch I submitted last year for adding 'week' capability to
> the date_trunc function.
> 
> Attached is a patch against HEAD for your review.

It has this comment in it:                              /* the new year cannot be greater than the
        * original year, so we subtract one if it is
 

Can you please explain that?

The "iso" year can be both greater and smaller than the current
year.


Kurt



pgsql-hackers by date:

Previous
From: Robert Creager
Date:
Subject: date_trunc problem in HEAD
Next
From: Tom Lane
Date:
Subject: Re: TODO item: support triggers on columns