1use chrono::{DateTime, Utc}; 2 3pub mod filesys; 4pub mod shcmd; 5 6///获取格式化时间戳 7pub fn get_strfmt_timestr<'a>(fmtstr: &str) -> String { 8 let now: DateTime<Utc> = Utc::now(); 9 return now.format(fmtstr).to_string(); 10}