Skip to main content

system_time_from_epoch

Function system_time_from_epoch 

Source
pub fn system_time_from_epoch(raw: i64) -> Option<SystemTime>
Expand description

Convert a non-negative epoch integer to SystemTime. Values >= 1e12 are interpreted as milliseconds; smaller values as seconds. Negative values fail.