Re: Timestamp/Interval proposals: Part 2 - Mailing list pgsql-hackers

From Karel Zak
Subject Re: Timestamp/Interval proposals: Part 2
Date
Msg-id 20020611113149.C19916@zf.jcu.cz
Whole thread Raw
In response to Re: Timestamp/Interval proposals: Part 2  (Fduch the Pravking <fduch@antar.bryansk.ru>)
Responses Re: Timestamp/Interval proposals: Part 2  (Hannu Krosing <hannu@tm.ee>)
List pgsql-hackers
On Tue, Jun 11, 2002 at 12:37:09PM +0400, Fduch the Pravking wrote:
> And 'DD' is defined as in range 1..31...
> What if I try to select '100 days'?
> 
> fduch=> SELECT to_char('100days'::interval, 'YYYY-MM-DD HH24:MI:SS');
>        to_char
> ---------------------
>  0000-00-10 00:00:00
I already said it. The to_char() is 'tm' struct interpreter and usestandard internal PG routines for interval to 'tm'
conversion.We cantalk about why 100days is converted to '10' days and months aren'tused. I agree this example seems
strange.Thomas?
 
   Karel

-- Karel Zak  <zakkr@zf.jcu.cz>http://home.zf.jcu.cz/~zakkr/C, PostgreSQL, PHP, WWW, http://docs.linux.cz,
http://mape.jcu.cz


pgsql-hackers by date:

Previous
From: "Marc G. Fournier"
Date:
Subject: Re: Project scheduling issues (was Re: Per tuple overhead,
Next
From: "Marc G. Fournier"
Date:
Subject: Re: Project scheduling issues (was Re: Per tuple overhead,