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: converting milliseconds to Oracle DATE

Re: converting milliseconds to Oracle DATE

From: Vladimir M. Zakharychev <bob--nospam--_at_dynamicpsp.com>
Date: Mon, 22 May 2006 12:46:44 +0400
Message-ID: <e4rtpl$21pp$1@hypnos.nordnet.ru>

<laredotornado_at_zipmail.com> wrote in message news:1148068468.365556.217170_at_u72g2000cwu.googlegroups.com...
> Hello,
>
> Using Oracle 9i on Solaris, how do I convert a numeric data column
> (which represents milliseconds passed since Jan, 1, 1970 midnight) to a
> DATE column?
>
> Thanks, - Dave
>

select timestamp '1970-01-01 00:00:00.00 +00:00' +   numtodsinterval(to_number(:unixstamp,'9999999999D999','NLS_NUMERIC_CHARACTERS=''. '''),'SECOND')) at local Received on Mon May 22 2006 - 03:46:44 CDT

Original text of this message

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