Date Format Inquiry

From: <pgsql-general(at)commandprompt(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Date Format Inquiry
Date: 2001-08-10 16:03:53
Message-ID: Pine.LNX.4.30.0108100902530.19645-100000@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Good day,

In the on-line documentation, it's mentioned that there is an available
date format of the form YYDDD, where YY is the year, and DDD is the day of
the year.

The example given is '99008', which does show up correctly:

lx=# SELECT date('99008');
date
------------
1999-01-08
(1 row)

In fact, it shows up correctly up until after I try to specify past
january, but above the 31st day it fails.

lx=# SELECT date('99031');
date
------------
1999-01-31
(1 row)

lx=# SELECT date('99032');
ERROR: Bad date external representation '99032'

Is this format no longer maintained, or am I missing something? ;)

Regards,
Jw.
--
jlx(at)commandprompt(dot)com
by way of pgsql-general(at)commandprompt(dot)com

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alex Pilosov 2001-08-10 16:24:24 Re: PL/Perl on Solaris
Previous Message Steve SAUTETNER 2001-08-10 15:39:26