Java Date Time - Duration Example








Field

  1. Duration ZERO

Method

  1. Duration abs()
  2. Duration addTo(Temporal temporal)
  3. Duration between(Temporal startInclusive, Temporal endExclusive)
  4. Duration compareTo(Duration otherDuration)
  5. Duration dividedBy(long divisor)
  6. Duration equals(Object otherDuration)
  7. Duration from(TemporalAmount amount)
  8. Duration getNano()
  9. Duration getSeconds()
  10. Duration getUnits()
  11. Duration get(TemporalUnit unit)
  12. Duration hashCode()
  13. Duration isNegative()
  14. Duration isZero()
  15. Duration minusDays(long daysToSubtract)
  16. Duration minusHours(long hoursToSubtract)
  17. Duration minusMillis(long millisToSubtract)
  18. Duration minusMinutes(long minutesToSubtract)
  19. Duration minusNanos(long nanosToSubtract)
  20. Duration minusSeconds(long secondsToSubtract)
  21. Duration minus(Duration duration)
  22. Duration minus(long amountToSubtract, TemporalUnit unit)
  23. Duration multipliedBy(long multiplicand)
  24. Duration negated()
  25. Duration ofDays(long days)
  26. Duration ofHours(long hours)
  27. Duration ofMillis(long millis)
  28. Duration ofMinutes(long minutes)
  29. Duration ofNanos(long nanos)
  30. Duration ofSeconds(long seconds)
  31. Duration ofSeconds(long seconds, long nanoAdjustment)
  32. Duration of(long amount, TemporalUnit unit)
  33. Duration parse(CharSequence text)
  34. Duration plusDays(long daysToAdd)
  35. Duration plusHours(long hoursToAdd)
  36. Duration plusMillis(long millisToAdd)
  37. Duration plusMinutes(long minutesToAdd)
  38. Duration plusNanos(long nanosToAdd)
  39. Duration plusSeconds(long secondsToAdd)
  40. Duration plus(Duration duration)
  41. Duration plus(long amountToAdd, TemporalUnit unit)
  42. Duration subtractFrom(Temporal temporal)
  43. Duration toDays()
  44. Duration toHours()
  45. Duration toMillis()
  46. Duration toMinutes()
  47. Duration toNanos()
  48. Duration toString()
  49. Duration withNanos(int nanoOfSecond)
  50. Duration withSeconds(long seconds)