Function mprober_lib::rtc_time::get_rtc_date_time[][src]

pub fn get_rtc_date_time() -> Result<NaiveDateTime, ScannerError>

Get the RTC datetime by reading the /proc/driver/rtc file.

extern crate mprober_lib;

use mprober_lib::rtc_time;

let rtc_date_time = rtc_time::get_rtc_date_time().unwrap();

println!("{}", rtc_date_time);