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: Convert Number to Time ?

Re: Convert Number to Time ?

From: Niall Litchfield <n-litchfield_at_audit-commission.gov.uk>
Date: Thu, 23 May 2002 14:17:07 +0100
Message-ID: <3cecebd3$0$8513$ed9e5944@reading.news.pipex.net>


You'll need to find out what the numbers mean. It may be simply the elapsed time in seconds since a certain date or it may be something else. We have an app that has a 'date' columns that is calculated as 8*day number + 64*month number + 256*year The only way to convert is to find out what the algorithm for converting dates into numbers is in the app that talks to this database.

Once you have done that, and verified the conversion, of course you can shoot the developer for using the wrong datatype.

--
Niall Litchfield
Oracle DBA
Audit Commission UK
*****************************************
Please include version and platform
and SQL where applicable
It makes life easier and increases the
likelihood of a good answer

******************************************
"Jon Spartan" <jonu_at_ixtech.net> wrote in message
news:a58oeu4quio3817du088vpsk4k6gga41hn_at_4ax.com...

> I have an Oracle 8.1.7 DB I must work with and import into MS-SQL. The
> "programmer" has a column TIME ( which I will allow should be some for
> od time or date/time ) which is listed as "number" with a precision of
> 21.
>
> I have to convert this to an MS-SQL datetime column.
>
> Is there anyone who may assist me in this, as I am at a total loss as
> Oracle is very new to me ( 4 days and counting )
>
> Many thanks in advance
>
> Jon Spartan
>
Received on Thu May 23 2002 - 08:17:07 CDT

Original text of this message

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