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

Home -> Community -> Usenet -> c.d.o.tools -> Re: How to compute for Oracle Date using seconds elapsed since midnight?

Re: How to compute for Oracle Date using seconds elapsed since midnight?

From: Thomas Jones-Low <tjoneslo_at_softstart.com>
Date: Mon, 21 May 2001 14:52:27 -0400
Message-ID: <3B0963EB.86B0FFF9@softstart.com>

Buyatkik wrote:
>
> Hi,
>
> Would someone be able to tell me how to compute the Oracle date for this
> value. This value is in seconds elapsed since... I also do not know what
> the base date for the computation will be. Is there something like
> DateAdd("s", 904892400, BaseDate)
>
> Thanks

        Date := SysDate + (Seconds / 86400);         

        Orace dates store dates as whole days, plus a fraction indication seconds past midnight.

-- 
	Thomas Jones-Low		JobScheduler for Oracle
	tjoneslo_at_softstart.com		
	Ph: 802-652-1596		http://www.softstart.com
Received on Mon May 21 2001 - 13:52:27 CDT

Original text of this message

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