Class InstantPrecisionUtil
java.lang.Object
com.atlassian.diagnostics.internal.util.InstantPrecisionUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic InstanttruncateNanoSecondPrecision(Instant instant) The Java 11 JVM offers nanosecond precision if the hardware supports it and this breaks a lot of assumptions within the diagnostics framework that a long would hold enough milliseconds since epoch precision that it's the same as an Instance object.
-
Method Details
-
truncateNanoSecondPrecision
The Java 11 JVM offers nanosecond precision if the hardware supports it and this breaks a lot of assumptions within the diagnostics framework that a long would hold enough milliseconds since epoch precision that it's the same as an Instance object.- Parameters:
instant- the instant to truncate- Returns:
- a new instant with truncated nanosecond level precision
-