Skip to main content

format_timestamp_utc

Function format_timestamp_utc 

Source
pub fn format_timestamp_utc(ts_seconds: i64, fmt: &str) -> Option<String>
Available on crate feature time only.
Expand description

Format a Unix timestamp (in seconds) as UTC.

Returns None if the timestamp is out of chrono’s representable range.