-
Type:
Sub-task
-
Resolution: Delivered
-
Priority:
P4
-
Affects Version/s: 26
-
Component/s: core-libs
`java.time.Instant` has a new method to simplify adding a `Duration` to an `Instant`. The `plusSaturating(Duration)` method adds a `Duration to an `Instant` using saturating arithmetic. The method never overflows or exceeds the Instant range, and returns the nearest bound `(Instant.MIN` or `Instant.MAX`) instead of throwing an exception.