Class TimeToChronoUnitConverter


  • public final class TimeToChronoUnitConverter
    extends java.lang.Object
    Provides functionality to convert TimeUnits to ChronoUnits.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.time.temporal.ChronoUnit of​(java.util.concurrent.TimeUnit unit)
      Returns the ChronoUnit representing the argument TimeUnit.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • of

        public static java.time.temporal.ChronoUnit of​(java.util.concurrent.TimeUnit unit)
        Returns the ChronoUnit representing the argument TimeUnit.
        Parameters:
        unit - the time unit to convert
        Returns:
        the chrono unit