Java API Tutorial - TimeUnit Example








Method

  1. Java TimeUnit.sleep(long timeout)
  2. Java TimeUnit.toDays(long duration)
  3. Java TimeUnit.toHours(long duration)
  4. Java TimeUnit.toMicros(long duration)
  5. Java TimeUnit.toMillis(long duration)
  6. Java TimeUnit.toMinutes(long duration)
  7. Java TimeUnit.toNanos(long duration)
  8. Java TimeUnit.toSeconds(long duration)
  9. Java TimeUnit.valueOf(String name)
  10. Java TimeUnit.values()