Skip to main content

epoch_to_iso

Function epoch_to_iso 

Source
pub fn epoch_to_iso(epoch: i64) -> String
Expand description

Converts a Unix epoch (seconds) to an ISO 8601 string with the global timezone.

Values outside the representable range return the fallback "1970-01-01T00:00:00+00:00".