Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Question about ticks in time

NewLearnerJun 13 2014 — edited Jun 13 2014

I have a question about the number of ticks.

CREATE function abc( netTicks in number )

RETURN TIMESTAMP

as

date1 DATE := '2010-11-01';

v_ticks_for_2010_11_01 NUMBER(19,0) := 634241664000000000; -- I didn't understand how this number came

v_ticks_in_a_second NUMBER(19,0) := 10000000; -- THERE ARE 10 MILLION TICKS IN A SECOND

begin

utils.dateadd('SECOND', ((netTicksĀ  - v_ticks_for_2010_11_01 )/ v_ticks_in_a_second ), date1 );-- what does this function do?

end

/

Thank you

This post has been answered by Frank Kulash on Jun 13 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 11 2014
Added on Jun 13 2014
13 comments
6,100 views