Skip to main content

utc_now_iso

Function utc_now_iso 

Source
pub fn utc_now_iso() -> String
Expand description

Generate a UTC timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ

This function uses chrono::Utc::now() to ensure the timestamp is truly in UTC, not local time with a misleading Z suffix.