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: Converting Numbers to Dates

Re: Converting Numbers to Dates

From: Joe Rogers <joer_at_renewal-iis.com>
Date: 1997/03/11
Message-ID: <3325CD8A.69EF@renewal-iis.com>#1/1

date_value := TO_DATE('01-JAN-70') + (seconds/86400);

I assume when you say 1970, you mean Jan 01. 86400 is the number of seconds in a day.

Andy Smith wrote:
>
> --
> I have a column in a table that stores the number of seconds
> since 1970, as a number ( datatype NUMBER )
>
> How can I convert this to a date e.g 11-MAR-1997
>

(trimmed)

-- 
Joe Rogers
Intelligent Information Systems, Inc.
joer_at_renewal-iis.com
Received on Tue Mar 11 1997 - 00:00:00 CST

Original text of this message

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