Skip to Main Content

Java Programming

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!

how to convert number 10 to a long value ?

807591Mar 26 2008 — edited Mar 27 2008
Hello
What is the corresponding long value for number 10 ?
I am trying to compare timestamp

time1: long value of 09:10:00 is 1206105000929
time2: long value of 09:08:20 is 1206104900929
I need to get the difference between time1 and time2 and check if that difference is less than 10, but I do not know the long value for 10 b/c I am using the long values to subtract.
Or if there is another clean way to do this, please point me in the right direction.

I appreciate any help on this .

Thank you

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Apr 24 2008
Added on Mar 26 2008
2 comments
187 views