1use chrono::Utc; 2 3pub fn time_get_millis() -> u64 { 4 Utc::now().timestamp_millis().try_into().unwrap() 5} 6 7pub fn time_get_seconds() -> u64 { 8 Utc::now().timestamp().try_into().unwrap() 9}