Re: date_trunc problem in HEAD

From: Kurt Roeckx <kurt(at)roeckx(dot)be>
To: Robert Creager <Robert_Creager(at)LogicalChaos(dot)org>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: date_trunc problem in HEAD
Date: 2005-03-13 18:40:02
Message-ID: 20050313184002.GA7034@roeckx.be
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2005-03-13 18:47:59 Re: TODO item: support triggers on columns
Previous Message Robert Creager 2005-03-13 18:12:32 date_trunc problem in HEAD