- ofMillis
Obtains an instance of Duration from a number of milliseconds. The seconds and
nanoseconds are extra
- ofSeconds
Obtains an instance of Duration from a number of seconds and an adjustment in
nanoseconds. This meth
- toMillis
Converts this duration to the total length in milliseconds. If this duration is
too large to fit in
- ofMinutes
Obtains an instance of Duration from a number of standard length minutes. The
seconds are calculated
- compareTo
Compares this duration to the specified Duration. The comparison is based on the
total length of the
- getSeconds
Gets the number of seconds in this duration. The length of the duration is
stored using two fields -
- isZero
Checks if this duration is zero length. A Duration represents a directed
distance between two points
- between
Obtains an instance of Duration representing the duration between two instants.
Obtains a Duration
- getNano
Gets the number of nanoseconds within the second in this duration. The length of
the duration is sto
- isNegative
Checks if this duration is negative, excluding zero. A Duration represents a
directed distance betwe
- toNanos
Converts this duration to the total length in nanoseconds expressed as a long.
If this duration is
- ofHours
Obtains an instance of Duration from a number of standard length hours. The
seconds are calculated b