Re: Formatting intervals..

From: Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: Rajesh Kumar Mallah <mallah(at)trade-india(dot)com>, Christoph Haller <ch(at)rodos(dot)fzk(dot)de>, pgsql-sql(at)postgresql(dot)org, jasiek(at)klaster(dot)net
Subject: Re: Formatting intervals..
Date: 2003-03-18 07:44:47
Message-ID: 20030318074447.GG5283@zf.jcu.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Mon, Mar 17, 2003 at 10:00:17AM -0800, Josh Berkus wrote:
> Guys,
>
> BTW, a "to_char" function for INTERVAL is on the TODO list. We just haven't
> had a volunteer to complete it.

test=# select to_char('3month 15d 4h 10m'::interval, 'DD-Mon HH24:MI:SS');
to_char
-----------------
15-Mar 04:10:00

It's evidently described in docs :-). The implementation is not absolutely
perfec (see list archive), but for basic things it's usable.

Karel

--
Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
http://home.zf.jcu.cz/~zakkr/

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tatsuo Ishii 2003-03-18 07:49:26 Re: PLPGSQL with Multibyte Issue
Previous Message Frankie Lam 2003-03-18 07:24:23 PLPGSQL with Multibyte Issue