date/time arithmetic
From: Ellen Storz <ellen_at_.pacific.net>
Date: 1995/06/25
Message-ID: <3sjvpv$mk2_at_pacific.pacific.net>#1/1
to_number(to_char(trunc(start_time,'mi'),'mi'))
from <table_name>;
Date: 1995/06/25
Message-ID: <3sjvpv$mk2_at_pacific.pacific.net>#1/1
(TO_DATE('01-JAN-9512:00','DD-MON-YYHH24:MI'))-(TO_DATE('01-JAN-9511:20','DD-MON
.027777778
I can do this to get the number of minutes
select (to_number(to_char(stop_time, 'hh24'))
and then reformat the result myself to print as hours and minutes, but I'm hoping there is an easier way.
TIA Received on Sun Jun 25 1995 - 00:00:00 CEST