Guest User

Untitled

a guest
May 20th, 2018
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. private static long REFERENCE = System.nanoTime();
  2. ...
  3. SimpleDateFormat dateKey = new SimpleDateFormat("yyyyMMddHHmmss");
  4. String delta = String.valueOf(System.nanoTime() - REFERENCE);
  5. byte[] timestamp = $(dateKey.format(date) + delta.substring(delta.length() - 9));
Add Comment
Please, Sign In to add comment