Files
rust/library/std
Jacob Pratt 9ba278e1b0 Rollup merge of #151200 - time_saturating_systemtime, r=Mark-Simulacrum
time: Add saturating arithmetic for `SystemTime`

This commit implements the following methods:
* `SystemTime::saturating_add`
* `SystemTime::saturating_sub`
* `SystemTime::saturating_duration_since`

The implementation of these methods is rather trivial, as the main logic lies behind the constants `SystemTime::MIN` and `SystemTime::MAX`.

See also:
* Accepted ACP: rust-lang/libs-team#718
* Tracking Issue: rust-lang/rust#151199
2026-01-18 03:16:45 -05:00
..