Compares this duration to the specified Duration.
Gets the value of the requested unit.
Gets the set of units supported by this duration.
Returns a copy of this duration with the specified duration subtracted.
Returns a copy of this duration with the specified duration subtracted.
Returns a copy of this Duration truncated to the specified unit.
Static
betweenStatic
fromObtains an instance of Duration from a temporal amount.
Static
ofObtains a Duration representing an amount in the specified unit.
Static
ofStatic
ofStatic
ofStatic
ofStatic
ofStatic
ofObtains a Duration representing a number of seconds.
Obtains a Duration representing a number of seconds and an adjustment in nanoseconds.
Static
parseGenerated using TypeDoc
A time-based amount of time, such as '34.5 seconds'.
See java.time.Duration for full documentation