@ javax . annotation . Nonnull public static TemporalUnit cvt ( @ javax . annotation . Nonnull final TimeUnit units ) { switch ( units ) { case DAYS : return ChronoUnit . DAYS ; case HOURS : return ChronoUnit . HOURS ; case MINUTES : return ChronoUnit . MINUTES ; case SECONDS : return ChronoUnit . SECONDS ; case NANOSECONDS : return ChronoUnit . NANOS ; case MICROSECONDS : return ChronoUnit . MICROS ; case MILLISECONDS : return ChronoUnit . MILLIS ; default : throw new IllegalArgumentException ( units . toString ( ) ) ; } }
Cvt temporal unit .