time interval format srting - Mailing list pgsql-general

From Joao Ferreira gmail
Subject time interval format srting
Date
Msg-id 1225818397.4564.29.camel@debj4n.critical.pt
Whole thread Raw
Responses Re: time interval format srting
Re: time interval format srting
Re: time interval format srting
List pgsql-general
Hello,

I've been searching the docs on a simple way to convert a time
_duration_ in seconds to the format dd:hh:mm:ss, but I can't find it.

90061 --> 1d 1h 1m 1s

(90061=24*3600+3600+60+1)

any ideas ?

I've been using to_char and to_timestamp to format dates/timestamps...
but this is diferent... I want to format time intervals, durations..

cheers
Joao



pgsql-general by date:

Previous
From: Eric Schwarzenbach
Date:
Subject: [Fwd: Re: GEQO randomness?]
Next
From: Jason Long
Date:
Subject: Re: JDBC and setting statement_timeout