Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> How to format time invervals?
Hello out there,
I'm trying to format some datetime invervals:
select
to_char(numtodsinterval(elapsed_seconds,'SECOND'),'DDD HH24:MI:SS') from
v$session_longops where rownum<10;
But I always get the default format back:
TO_CHAR(NUMTODSINTERVAL(ELAPSE
The Oracle docs don't give any hint how to format these intervals. Obviously, the format models for the date datatype don't work for intervals.
Can anyone tell me how to do it right?
I use Oracle 9.0.1.3.1 on W2k.
Many thanks in advance,
Lothar
Received on Tue Apr 01 2003 - 01:38:04 CST
![]() |
![]() |