Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: newby sql question: adding time

Re: newby sql question: adding time

From: Ed Prochak <edprochak_at_adelphia.net>
Date: Sun, 29 Jun 2003 19:21:22 GMT
Message-ID: <3EFF40B3.5040607@adelphia.net>


Peter Verschueren wrote:
> how do i add a number representing total of minutes to a date: 200(minutes)
> to 24-06-03 14:00:00 would make
> 24-06-03 17:20
>
> thanks
>
> peter
>
>

ORACLE dates are in units of days, so just calculate the fraction of a day that 200minutes represents and add it. The arithmetic is left as an exercise for the student 8^)

(Final hint: it's in the manual!)

-- 
Ed Prochak
running    http://www.faqs.org/faqs/running-faq/
netiquette http://www.psg.com/emily.html
--
"Two roads diverged in a wood and I
I took the one less travelled by
and that has made all the difference."
robert frost
Received on Sun Jun 29 2003 - 14:21:22 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US