Multiplies by factor, when nanoseconds overflow Long.MaxValue returns Infinity,
if factor is negative returns Duration.Zero.
Adds other Duration.
Adds other Duration. When nanoseconds overflow Long.MaxValue returns Infinity.
The java.time.Duration returned for an infinite Duration is technically "only" ~2x10^16 hours long (Long.MaxValue number of seconds)
Whether this is a zero duration
Number of milliseconds.
Number of nanoseconds.
Non-negative duration. Operations that would result in negative value of nanoseconds return zero duration and ones that would result in
Long.MaxValueoverflow return infinity.InfinityhasLong.MaxValuenanoseconds value, but for arithmetic operations behaviour is mathematical infinity like-ish.