blob: 3254c1161d8a91ebae10ddd98dfb1b33ebc33101 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
use crate::load_config::Settings;
use chrono::prelude::*;
pub fn fmt_date(setting: &Settings) -> String {
let now = Local::now();
format!(
" {} {} {}",
setting.time.icon,
now.format(&setting.time.format),
setting.seperator
)
}
|