Package kieker.analysis.util.time
Class ChronoUnits
java.lang.Object
kieker.analysis.util.time.ChronoUnits
public final class ChronoUnits
extends java.lang.Object
Helper class for
ChronoUnit
s.- Since:
- 1.14
- Author:
- Sören Henning
-
Method Summary
Modifier and Type Method Description static java.time.temporal.ChronoUnit
createFromTimeUnit(java.util.concurrent.TimeUnit timeUnit)
Will be obsolete in Java 9 and can be replaced byTimeUnit.toChronoUnit()
.
-
Method Details
-
createFromTimeUnit
public static java.time.temporal.ChronoUnit createFromTimeUnit(java.util.concurrent.TimeUnit timeUnit)Will be obsolete in Java 9 and can be replaced byTimeUnit.toChronoUnit()
. See: https://bugs.openjdk.java.net/browse/JDK-8141452- Parameters:
timeUnit
- the used time unit.- Returns:
- returns the corresponding Chrono unit for a time unit.
-