rust 打印当前时间

let now = time::now();
let f_now = time::strftime("%Y-%m-%dT%H:%M:%S", &now).unwrap();
println!("now: {:?}", f_now);
posted @ 2019-11-19 15:21  vsop_479  阅读(1961)  评论(0编辑  收藏  举报