xlsx_group_write 1.1.9

excel xlsx分组输出器
Documentation
1
2
3
4
5
6
7
8
9
10
11
use time::{
    macros::{format_description, offset},
    OffsetDateTime,
};
/// 获取当前时间
pub fn get_now_date() -> String {
    // 中国为UTF+8
    let date_format = format_description!("[year][month][day]");
    let now = OffsetDateTime::now_utc().to_offset(offset!(+8)).date();
    now.format(&date_format).unwrap()
}