DataType or customized method to hold a time value with pico seconds

19 views
Skip to first unread message

Srija

unread,
Sep 8, 2013, 1:39:14 PM9/8/13
to java-bra...@googlegroups.com
Hi,  I need help in this issue and I am a returning java programmer after a big gap.
In my project currently a double is holding a time value such as unix timestamp with microseconds such as 1378500160.123456 where as unix timestamp + microseconds.  Requirement I need to implement is, unix timestamp + nanosecond or picosecond.  
1)  Is there any datatype which can hold this value in Java?  Pl. provide an example for that.
2)  I looked into BigDecimal.  Will it work for this requirement?  If it works I need a sample code for my req.
3)  If above will not work Pl. provide me a customized method to do this req.

I hope some one can help me as I have a deadline to meet.

Thanks, Srija


Note:  Couldn't find right tag.
Reply all
Reply to author
Forward
0 new messages