Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: How to sum minutes to date
"Max" <m.daniello_at_rational-services.it> wrote in message
news:c4gshi$2j5ia4$1_at_ID-224556.news.uni-berlin.de...
> Hi all,
> I need to sum x minutes to a date. Ex. the value I select is '01/01/2004
> 12:30' and I need to sum '20' minutes so to obtain '01/01/2004 12:50'.
> How could I do? I not find in Oracle 9i a function to sum time.
> Thanks in advanced
Hi
well if you do normal math and add 1 to a date you add 24 hours to it and get the day afterwards. There are usually 1440 minutes in a day so 20 minutes are 20/1440 of a day.
-- Niall Litchfield Oracle DBA Audit Commission UKReceived on Thu Apr 01 2004 - 05:44:15 CST