Function mprober_lib::btime::get_btime[][src]

pub fn get_btime() -> DateTime<Utc>

Get the btime (boot time) by subtract the current uptime from the current unix epoch timestamp.

extern crate mprober_lib;

use mprober_lib::btime;

let btime = btime::get_btime();

println!("{}", btime);