omaha_client::time::system_time_conversion

Function checked_system_time_to_micros_from_epoch

Source
pub fn checked_system_time_to_micros_from_epoch(time: SystemTime) -> Option<i64>
Expand description

Convert a SystemTime into microseconds from the unix epoch, returning None on overflow. Valid over roughly +/- 30,000 years from 1970-01-01 UTC.