This commit is contained in:
jb-alvarado 2022-02-14 21:32:55 +01:00
parent 2434764c9e
commit 6970b58fd1

View File

@ -3,11 +3,8 @@ use chrono::prelude::*;
pub fn get_sec() -> f64 {
let local: DateTime<Local> = Local::now();
let sec = (
local.hour() * 3600 + local.minute() * 60 + local.second()
) as f64 + (local.nanosecond() as f64 / 1000000000.0);
sec
(local.hour() * 3600 + local.minute() * 60 + local.second()
) as f64 + (local.nanosecond() as f64 / 1000000000.0)
}
pub fn get_timestamp() -> i64 {