Website Home
HOME
Java Date Introduction
Java Date Time Introduction
Java Date Time Methods
Java Date Time
Java Instants/Durations
Java Date Time Zone
Java Year Month Day
Java Local Date Time
Java Offset Date Time
Java Zoned Date Time
Java Clock Period
Java Chrono Field Unit
Java Date Time Adjuster
Java Date Time Query
Java Non ISO Calendar
Java Date Format/Parse
Java Date Time Format
Java Custom Date Format
Java Locale Specific Formats
Java Dates and Times Parsing
Java Legacy Date
Java Legacy Date Calendar
Java Date Time Interoperability
java.time Package Reference
Clock
DayOfWeek
Duration
Instant
LocalDate
LocalDateTime
LocalTime
Month
MonthDay
OffsetDateTime
OffsetTime
Period
Year
YearMonth
ZonedDateTime
ZoneId
ZoneOffset
java.util Package
Calendar
Date
GregorianCalendar
SimpleTimeZone
TimeZone
Java Date Time - Duration Example
« Previous
Next »
Field
Duration ZERO
Method
Duration abs()
Duration addTo(Temporal temporal)
Duration between(Temporal startInclusive, Temporal endExclusive)
Duration compareTo(Duration otherDuration)
Duration dividedBy(long divisor)
Duration equals(Object otherDuration)
Duration from(TemporalAmount amount)
Duration getNano()
Duration getSeconds()
Duration getUnits()
Duration get(TemporalUnit unit)
Duration hashCode()
Duration isNegative()
Duration isZero()
Duration minusDays(long daysToSubtract)
Duration minusHours(long hoursToSubtract)
Duration minusMillis(long millisToSubtract)
Duration minusMinutes(long minutesToSubtract)
Duration minusNanos(long nanosToSubtract)
Duration minusSeconds(long secondsToSubtract)
Duration minus(Duration duration)
Duration minus(long amountToSubtract, TemporalUnit unit)
Duration multipliedBy(long multiplicand)
Duration negated()
Duration ofDays(long days)
Duration ofHours(long hours)
Duration ofMillis(long millis)
Duration ofMinutes(long minutes)
Duration ofNanos(long nanos)
Duration ofSeconds(long seconds)
Duration ofSeconds(long seconds, long nanoAdjustment)
Duration of(long amount, TemporalUnit unit)
Duration parse(CharSequence text)
Duration plusDays(long daysToAdd)
Duration plusHours(long hoursToAdd)
Duration plusMillis(long millisToAdd)
Duration plusMinutes(long minutesToAdd)
Duration plusNanos(long nanosToAdd)
Duration plusSeconds(long secondsToAdd)
Duration plus(Duration duration)
Duration plus(long amountToAdd, TemporalUnit unit)
Duration subtractFrom(Temporal temporal)
Duration toDays()
Duration toHours()
Duration toMillis()
Duration toMinutes()
Duration toNanos()
Duration toString()
Duration withNanos(int nanoOfSecond)
Duration withSeconds(long seconds)
Next »
« Previous