Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: converting milliseconds to Oracle DATE
Dave, if your number is really milliseconds then unless you can round
to the nearest second you have a minor problem. An Oracle date
datatype only keeps time to the nearest second.
The timestamp datatype can record fractional seconds.
The difference between any two dates in Oracle is a number representing days and fractions thereof. So convert your number to days and fractions thereof and add this to a to_date on your reference date.
--
HTH -- Mark D Powell -- Received on Fri May 19 2006 - 18:26:52 CDT
![]() |
![]() |