get_rtc_date_time

Function get_rtc_date_time 

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

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

use mprober_lib::rtc_time;

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

println!("{rtc_date_time}");