blob: 191d91b60b2949dc31f8065d85391e9e7bb37540 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
use crate::config::CONFIG;
use crate::types::ThreadsData;
use chrono::prelude::*;
pub fn get_time() -> ThreadsData {
let now = Local::now();
let data = format!(
" {} {} {}",
CONFIG.time.icon,
now.format(&CONFIG.time.format),
CONFIG.seperator
);
ThreadsData::Time(data)
}
|