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

From Karel Zak
Subject Re: Timestamp/Interval proposals: Part 2
Date
Msg-id 20020610095859.B23410@zf.jcu.cz
Whole thread Raw
In response to Re: Timestamp/Interval proposals: Part 2  (Thomas Lockhart <lockhart@fourpalms.org>)
Responses Re: Timestamp/Interval proposals: Part 2
List pgsql-hackers
On Fri, Jun 07, 2002 at 06:48:31PM -0700, Thomas Lockhart wrote:
> 
> > Proposal #4:  Create to_char(INTERVAL, 'format string') Function.
> > Reason:  self-evident, I think.
> 
> Oh. Didn't know it wasn't already there.
I'm _sure_ that to_char() is there for interval.

testt=# select to_char('33s 15h 10m 5month'::interval, 'HH:MI:SS Month');     to_char       
--------------------03:10:33 May
(1 row)

test=# select version();                          version                    
-------------------------------------------------------------PostgreSQL 7.2 on i686-pc-linux-gnu, compiled by GCC
2.95.4
(1 row)

And it's in the docs too....

       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: Jean-Michel POURE
Date:
Subject: Re: How can we help?
Next
From: Hannu Krosing
Date:
Subject: Re: Timestamp/Interval proposals: Part 2