Re: date/time arithmetic

From: DACUMMINS_at_DELPHI.COM <(DACUMMINS_at_DELPHI.COM)>
Date: 9 Mar 1995 19:00:36 -0500
Message-ID: <3jo4r4$1o1_at_news2.delphi.com>


rbowen_at_access3.digex.net (Raymond Bowen) writes:

>I am writing a stored procedure that is attempting to add three
>hours to a date (i.e. SYSDATE). Any idea in how to do this?

raymond,

this should work for you:

select sysdate+3/24 from dual;

or some such. just remember, you're adding days (or fractions thereof), so 10 minutes would be +10/1440. get it?

douglas
delphi consulting services, inc.
dacummins_at_delphi.com
:-> Received on Fri Mar 10 1995 - 01:00:36 CET

Original text of this message