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

Home -> Community -> Usenet -> c.d.o.server -> Re: Q: Date/time arithmetics with Oracle Server

Re: Q: Date/time arithmetics with Oracle Server

From: Alton Ayers <altona_at_ditw.com>
Date: Fri, 25 Jun 1999 13:00:28 -0400
Message-ID: <3773B5AB.51797DAB@ditw.com>


There are 86400 seconds in a day. To add or subtract seconds use + or - n/86400 where n is number of seconds.

Uwe Schneider wrote:

> Hi experts,
>
> is there an easy way to add or subtract a number of seconds to/from an
> Oracle date type such as
>
> ADD_SECONDS(date_val,-20)
>
> without using special packages???
>
> In my opinion the Oracle DATE type is quite strange.
>
> Best regards!
> --
> uwe.schneider_at_xlink.net
Received on Fri Jun 25 1999 - 12:00:28 CDT

Original text of this message

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