- toMillis
Converts this duration to the total length in milliseconds. If this duration is
too large to fit in
- ofSeconds
Obtains an instance of Duration from a number of seconds and an adjustment in
nanoseconds. This meth
- ofMillis
Obtains an instance of Duration from a number of milliseconds. The seconds and
nanoseconds are extra
- getSeconds
Gets the number of seconds in this duration. The length of the duration is
stored using two fields -
- between
Obtains an instance of Duration representing the duration between two instants.
Obtains a Duration
- ofMinutes
Obtains an instance of Duration from a number of standard length minutes. The
seconds are calculated
- toNanos
Converts this duration to the total length in nanoseconds expressed as a long.
If this duration is
- parse
Obtains a Duration from a text string such as PnDTnHnMn.nS. This will parse a
textual representation
- isNegative
Checks if this duration is negative, excluding zero. A Duration represents a
directed distance betwe
- ofNanos
Obtains an instance of Duration from a number of nanoseconds. The seconds and
nanoseconds are extrac
- compareTo
Compares this duration to the specified Duration. The comparison is based on the
total length of the
- ofDays
Obtains an instance of Duration from a number of standard 24 hour days. The
seconds are calculated b