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: K Stahl <BlueSax_at_Unforgettable.com>
Date: Fri, 11 Feb 2000 14:56:31 -0500
Message-ID: <38A4696F.F47A518C@Unforgettable.com>


Ken Sproule wrote:
>
> 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,

Convert the time to seconds and then add or subtract seconds followed by a conversion back to a date. Received on Fri Feb 11 2000 - 13:56:31 CST

Original text of this message

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