Re: [GENERAL] ISO week dates

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: guillaume(at)lelarge(dot)info
Cc: Brendan Jurd <direvus(at)gmail(dot)com>, pgsql-patches(at)postgresql(dot)org
Subject: Re: [GENERAL] ISO week dates
Date: 2006-10-16 17:01:33
Message-ID: 200610161901.35955.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-patches

Guillaume Lelarge wrote:
> Guillaume Lelarge a ecrit le 12/10/2006 20:20:
> > Peter Eisentraut a écrit :
> >> We should also support a format for ISO day-of-the-year, which
> >> might be 'IDDD'.
> >
> > I will work tomorrow on this one.
>
> Don't we already have it ? It seems ISO day-of-the-year is between
> 001 and 366 in leap years. Isn't this the definition for DDD format ?
> if Im' right, I just need to add the IDDD pattern ?

The ISO 8601 day-of-the-year is aligned with the week-of-the-year. It
should be the case that day one of week one is also day one of the
year.

(As a particular example, day one of 2006 is January 2, 2006.)

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Carlos H. Reimer 2006-10-16 17:08:23 RES: Dates rejected
Previous Message Tom Lane 2006-10-16 16:42:00 Re: query log corrupted-looking entries

Browse pgsql-patches by date

  From Date Subject
Next Message Michael Paesold 2006-10-16 17:20:45 Re: Constraint trigger doc patch
Previous Message Guillaume Lelarge 2006-10-16 16:41:17 Re: [GENERAL] ISO week dates