1 2 3 4 5 6
use chrono::offset::Utc; pub fn current_timestamp() -> u32 { let now = Utc::now(); now.timestamp() as u32 }