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
..
benches benchmark path.components() iteration 2025-10-25 14:46:58 +02:00
src Rollup merge of #151200 - time_saturating_systemtime, r=Mark-Simulacrum 2026-01-18 03:16:45 -05:00
tests time: Add saturating arithmetic for SystemTime 2026-01-16 11:52:01 +01:00
build.rs Update to new API, allowing to remove check_doc_cfg.rs file from librustdoc 2025-12-10 12:28:08 +01:00
Cargo.toml Remove std_detect_file_io and std_detect_dlsym_getauxval features 2026-01-08 14:50:12 +00:00