1use chrono::Timelike; 2 3pub fn get_timestamp() -> String { 4 chrono::Local::now() 5 .with_nanosecond(0) 6 .unwrap_or_default() 7 .to_string() 8}