This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
Hi all, I want to create a unique key using current time (up to milisec if possible), but I forget the proper class and methods that I should use. Could someone please tell me how to do that? Thanks a lot Chris
Which returns a long signifying the number of milliseonds that have elapsed since midnight Jan. 1, 1970. Cast the long to a String, and you have a unique key and/or timestamp.
HTH, -Nate
-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Chris Ben
Ranch Hand
Joined: Jan 15, 2001
Posts: 135
posted
0
Hi Sankar and Nathan, Thank you for your help. I got it. Chris