rust 打印当前时间

let now = time::now();
let f_now = time::strftime("%Y-%m-%dT%H:%M:%S", &now).unwrap();
println!("now: {:?}", f_now);
原文地址:https://www.cnblogs.com/vsop/p/11889768.html