Re: fomatting an interval (resend) - Mailing list pgsql-general

From Dennis Gearon
Subject Re: fomatting an interval (resend)
Date
Msg-id 3EC16C4C.4090005@cvc.net
Whole thread Raw
In response to Re: fomatting an interval (resend)  (jks@selectacast.net)
Responses Re: fomatting an interval (resend)  (Joseph Shraibman <jks@selectacast.net>)
List pgsql-general
write a pl/pgsql function that outputs the format, based on receiving the interval in seconds.

jks@selectacast.net wrote:
> On Tue, 13 May 2003, Steve Crawford wrote:
>
>
>>How about:
>>
>>select to_char(finish-start, 'HH24:MI:SS') from timetable;
>> to_char
>>----------
>> 00:01:29
>>
>>This won't work if the interval is > 24 hours - you would have to add
>>formatting to allow for days.
>>
>
>
> ... which is exactly my problem.
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>


pgsql-general by date:

Previous
From: Darren Ferguson
Date:
Subject: Re: VARCHAR to TIME
Next
From: Dennis Gearon
Date:
Subject: Re: VARCHAR to TIME