Skip to main content

set

Function set 

Source
pub fn set(ts: f64) -> Result<(), String>
Expand description

Freezes the wall clock at ts unix seconds. Monotonic time keeps flowing: an Instant cannot be moved backwards. For nitr test only.

ยงErrors

A timestamp that is not finite, negative, or past year 9999.