rcmd-core 0.1.0

base commond tools for gamedevalop.Most of them are i/o, zip, time, crypto helpful static methods.
Documentation
1
2
3
4
5
6
7
8
9
10
use chrono::{DateTime, Utc};

pub mod filesys;
pub mod shcmd;

///获取格式化时间戳
pub fn get_strfmt_timestr<'a>(fmtstr: &str) -> String {
    let now: DateTime<Utc> = Utc::now();
    return now.format(fmtstr).to_string();
}