Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Formatting Differences in Dates
kinda complex but:
to_char (trunc ((end_date - start_date)*24))||' hours '||
to_char (mod (trunc ((end_date - start_date)*1440), 1440))||' minutes '|| to_char (mod ((end_date - start_date)*86400), 86400))||' seconds'
Personally, I'd rather use a PL/SQL function.
Joe Zafian Received on Thu Mar 25 1999 - 09:02:31 CST
![]() |
![]() |