Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Date conversion
('binary' encoding is not supported, stored as-is)
George,
No such conversion routine, at least in the releases I regularly work with, but you are on the right track. to_date('01/01/1970 00:00:00', 'DD/MM/YYYY HH24:MI:SS') + <your number> / 86400 gives you a date (in the Oracle acceptance of the term) corresponding to the Unix-style timestamp. You just have to apply a to_char() to it with the 'HH24:MI:SS' mask.
HTH,
Stephane Faroult
Oriole
-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Stephane Faroul INET: sfaroult_at_oriolecorp.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Thu Jan 23 2003 - 04:43:42 CST
![]() |
![]() |