I am struggling to get the unix time epoch with microseconds in this format(1586420933.453254). I tried different classes.
- java.utils.Calendar
- java.time.Instant
- org.joda.time.DateTime
But I am getting only milliseconds like this - 1586420933453
How do I get the unix epoch with microseconds like this 1586420933.453254 in Java.
Instantand the relevant methods onSystem. IfInstantisn't providing that resolution, the system clock may not have it. Specify your runtime platform.