Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: seconds from midnight into a date field?
If you're running on 9i you can do something like this:
alter session set nls_date_format='dd-mon-yyyy hh24:mi:ss';
markis_at_PRACTICE>select numtodsinterval(0001,'SECOND')+trunc(sysdate)dt from dual;
DT
markis_at_PRACTICE>select numtodsinterval('0050','SECOND')+trunc(sysdate)dt from dual;
DT
markis_at_PRACTICE>select numtodsinterval('0054','SECOND')+trunc(sysdate)dt from dual;
DT
HTH, Mark
-----Original Message-----
From: oracle-l-bounce_at_freelists.org
To: oracle-l_at_freelists.org
Sent: 7/12/2004 5:54 AM
Subject: seconds from midnight into a date field?
I have a varchar field that I need to migrate to a date field. it is in
the form 'seconds from midnight' and looks like this
0001
0050
1054
I can't find a to_date function to translate that. do any exist?
![]() |
![]() |