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: getting milliseconds from a DATE

Re: getting milliseconds from a DATE

From: <marcus.rangel_at_gmail.com>
Date: 9 May 2006 09:46:49 -0700
Message-ID: <1147193209.379585.187550@j73g2000cwa.googlegroups.com>


But he probably does not need to be so precise, right ? He could create a 'timestamp' column to replace the 'date' one, and accept to lose the last second for the previous data, calculating the number through something like this:

SQL> select time_diff('01-JAN-70',sysdate) * 1000 from dual;

TIME_DIFF('01-JAN-70',SYSDATE)


                 1147182144000

(code for time_diff : http://www.psoug.org/reference/date_func.html) Received on Tue May 09 2006 - 11:46:49 CDT

Original text of this message

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