well I think jmodic means you store timestamp with milliseconds (by calling java function) as varchar2 then you simply do simple queries