Quote Originally Posted by ramdaya View Post
the date in oracle is stored in seconds
Since Oracle stores DATE datatype in seven bytes - Century, Year, Month, Day, Hour, Minutes, Seconds - I assume you are saying somebody designed a database where for some unknown reason decided to convert dates to seconds then store that value in a NUMBER or so datatype, is that correct?

If that's the case that person most probably created a set of functions to deal with that particular design feature -look at functions.