External Publication
Visit Post

`Instant::PAST_VALUE` constant?

Rust Internals [Unofficial] May 12, 2026
Source

I often find that it would be useful to have a value for Instant which is some arbitrary point in time which is guaranteed to be in the past. On Linux (which I know most about), this should be doable by just creating Timespec::zero(), but I don't know enough about the other platforms, is there something about those that prevents this constant from existing?

Discussion in the ATmosphere

Loading comments...