Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Date and Time arithmetic
Hendrik Lampert wrote:
> Hi,
>
> is there any way in oracle to get the number of seconds, minutes, and hours
> between 2 date columns, e.g 11.03.2003 10:00:00 and 09.03.2003 08:15:20?
>
> thx
> hendrik
>
>
time2 - time1; recalculate as the outcome will be in days.
to_date('09.03.2003 08:15:20','MM.DD.YYYY HH:MI:SS') - theOtherOne. Maybe use 'MM.DD.YYYY HH24:MI:SS' as format mask, if you have 24hr formats (which is not obvious from your posting)
-- Regards, Frank van BortelReceived on Tue Mar 11 2003 - 15:21:23 CST