Module java.base
Package java.time

# Class Duration

=
public final class Duration
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable<java.time.Duration>, java.time.temporal.TemporalAmount

## Fields

- =
  public static final java.time.Duration ZERO

## Methods

- =
  public java.time.Duration abs()
- =
  public java.time.temporal.Temporal addTo(java.time.temporal.Temporal arg0)
- =
  public static java.time.Duration between(java.time.temporal.Temporal arg0, java.time.temporal.Temporal arg1)
- =
  public int compareTo(java.time.Duration arg0)
- =
  public java.time.Duration dividedBy(long arg0)
- =
  public long dividedBy(java.time.Duration arg0)
- =
  public boolean equals(java.lang.Object arg0)
- =
  public static java.time.Duration from(java.time.temporal.TemporalAmount arg0)
- =
  public long get(java.time.temporal.TemporalUnit arg0)
- =
  public int getNano()
- =
  public long getSeconds()
- =
  public java.util.List<java.time.temporal.TemporalUnit> getUnits()
- =
  public int hashCode()
- =
  public boolean isNegative()
- =
  public boolean isPositive()
- =
  public boolean isZero()
- =
  public java.time.Duration minus(long arg0, java.time.temporal.TemporalUnit arg1)
- =
  public java.time.Duration minus(java.time.Duration arg0)
- =
  public java.time.Duration minusDays(long arg0)
- =
  public java.time.Duration minusHours(long arg0)
- =
  public java.time.Duration minusMillis(long arg0)
- =
  public java.time.Duration minusMinutes(long arg0)
- =
  public java.time.Duration minusNanos(long arg0)
- =
  public java.time.Duration minusSeconds(long arg0)
- =
  public java.time.Duration multipliedBy(long arg0)
- =
  public java.time.Duration negated()
- =
  public static java.time.Duration of(long arg0, java.time.temporal.TemporalUnit arg1)
- =
  public static java.time.Duration ofDays(long arg0)
- =
  public static java.time.Duration ofHours(long arg0)
- =
  public static java.time.Duration ofMillis(long arg0)
- =
  public static java.time.Duration ofMinutes(long arg0)
- =
  public static java.time.Duration ofNanos(long arg0)
- =
  public static java.time.Duration ofSeconds(long arg0)
- =
  public static java.time.Duration ofSeconds(long arg0, long arg1)
- =
  public static java.time.Duration parse(java.lang.CharSequence arg0)
- =
  public java.time.Duration plus(long arg0, java.time.temporal.TemporalUnit arg1)
- =
  public java.time.Duration plus(java.time.Duration arg0)
- =
  public java.time.Duration plusDays(long arg0)
- =
  public java.time.Duration plusHours(long arg0)
- =
  public java.time.Duration plusMillis(long arg0)
- =
  public java.time.Duration plusMinutes(long arg0)
- =
  public java.time.Duration plusNanos(long arg0)
- =
  public java.time.Duration plusSeconds(long arg0)
- =
  public java.time.temporal.Temporal subtractFrom(java.time.temporal.Temporal arg0)
- =
  public long toDays()
- =
  public long toDaysPart()
- =
  public long toHours()
- =
  public int toHoursPart()
- =
  public long toMillis()
- =
  public int toMillisPart()
- =
  public long toMinutes()
- =
  public int toMinutesPart()
- =
  public long toNanos()
- =
  public int toNanosPart()
- =
  public long toSeconds()
- =
  public int toSecondsPart()
- =
  public java.lang.String toString()
- =
  public java.time.Duration truncatedTo(java.time.temporal.TemporalUnit arg0)
- =
  public java.time.Duration withNanos(int arg0)
- =
  public java.time.Duration withSeconds(long arg0)

## Serialized Form

=

### serialVersionUID

=3078945930695997490

### Serialized Fields

- =
  int nanos
- =
  long seconds

### Serialization Methods

- =
  private void readObject(java.io.ObjectInputStream arg0) throws java.io.InvalidObjectException
- =
  private java.lang.Object writeReplace()

## Summary

No differences.