Skip to main content

format_timestamp

Function format_timestamp 

Source
pub fn format_timestamp(ts: &str) -> String
Expand description

Format an ISO 8601 UTC timestamp for human display.

"2026-03-29T07:34:19Z""2026-03-29 07:34" Strings that don’t match the pattern (e.g. "-") are returned unchanged.