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: How to add or subtract 10 minutes from a date?

Re: How to add or subtract 10 minutes from a date?

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Fri, 11 Feb 2000 20:52:25 +0100
Message-ID: <950301768.886.0.pluto.d4ee154e@news.demon.nl>


The unit is days, so you'll need the corresponding fraction of a day (which means 10 / (24 /*hours */ * 60 /* minutes */)

Hth,

Sybrand Bakker, Oracle DBA

Ken Sproule <kenmn_at_tds.net> wrote in message news:eqp8as44360fk4ld9rnavgp0be9f0fluhr_at_4ax.com...
> Thanks in advance everyone.
>
> Assume I have a date like '12/31/99 11:59:30' and I want to add 10
> Minutes to it.
> I need to do this in s cursor select in a Before Insert Trigger that
> goes like:
> CURSOR cur is select * from xxxx X where X.dateAndTime <
> :(new.DateTime - 10 Minutes);
>
> I haven't been very successful in figuring it out. A worse date would
> be '02/28/00 11:59:30' + 10 minutes.
>
> How can I do this?
>
> Best,
>
> Ken Sproule
> kenmn_at_tds.net
>
>
> Ken Sproule
> kenmn_at_tds.net
Received on Fri Feb 11 2000 - 13:52:25 CST

Original text of this message

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