mirror of
https://github.com/YGGverse/htcount.git
synced 2026-03-31 17:15:37 +00:00
update log time format
This commit is contained in:
parent
7d0db3f8ec
commit
3b127c581e
1 changed files with 2 additions and 5 deletions
|
|
@ -2,9 +2,6 @@ pub fn info(message: &str) {
|
||||||
println!("[{}] [info] {message}", now())
|
println!("[{}] [info] {message}", now())
|
||||||
}
|
}
|
||||||
|
|
||||||
fn now() -> u128 {
|
fn now() -> String {
|
||||||
std::time::SystemTime::now()
|
chrono::Local::now().to_rfc3339()
|
||||||
.duration_since(std::time::UNIX_EPOCH)
|
|
||||||
.unwrap()
|
|
||||||
.as_millis()
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue