pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Karel Zak <zakkr@zf.jcu.cz>
To: Josh Berkus <josh@agliodbs.com>
Cc: Rajesh Kumar Mallah <mallah@trade-india.com>
Cc: Christoph Haller <ch@rodos.fzk.de>
Cc: pgsql-sql@postgresql.org
Cc: jasiek@klaster.net
Subject: Re: Formatting intervals..
Date: Tue, 18 Mar 2003 08:44:47 +0100
Message-ID: <20030318074447.GG5283@zf.jcu.cz> (raw)
In-Reply-To: <200303171000.17266.josh@agliodbs.com>
References: <3E75DB1C.CA0A3F06@rodos.fzk.de>
	<200303172024.03256.mallah@trade-india.com>
	<200303171000.17266.josh@agliodbs.com>

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@zf.jcu.cz>
 http://home.zf.jcu.cz/~zakkr/



view thread (15+ messages)  latest in thread

Message-ID: <20030318074447.GG5283@zf.jcu.cz>
Permalink:  ../20030318074447.GG5283@zf.jcu.cz/
Also on:    postgresql.org/message-id/20030318074447.GG5283@zf.jcu.cz

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: zakkr@zf.jcu.cz, josh@agliodbs.com, mallah@trade-india.com, ch@rodos.fzk.de, jasiek@klaster.net
  Subject: Re: Formatting intervals..
  In-Reply-To: <20030318074447.GG5283@zf.jcu.cz>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox