converting timestamp to nanoseconds

Posted by kuki on Stack Overflow See other posts from Stack Overflow or by kuki
Published on 2012-03-28T05:12:25Z Indexed on 2012/03/28 5:29 UTC
Read the original article Hit count: 76

Filed under:
|
|

I have a certain value of date and time say 28-3-2012(date) - 10:36:45(time) . I wish to convert this whole timestamp to nanoseconds with the precision of nanoseconds. As in the user would input the time and date as shown but internally i have to be accurate upto nanoseconds and convert the whole thing to nanoseconds to form a unique key assigned to a specific object created at that particular time. Could some one please help me with the same..

© Stack Overflow or respective owner

Related posts about java

Related posts about datetime