We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d603a2b commit 2494498Copy full SHA for 2494498
templates/android/library/src/main/java/io/package/ID.kt.twig
@@ -11,10 +11,10 @@ class ID {
11
private fun hexTimestamp(): String {
12
val now = Instant.now()
13
val sec = now.epochSecond
14
- val usec = System.nanoTime() / 1000
+ val usec = (System.nanoTime() / 1000) % 1000
15
16
- // Convert both parts to hexadecimal format
17
val hexTimestamp = "%08x%05x".format(sec, usec)
+
18
return hexTimestamp
19
}
20
0 commit comments