format_timestamp

Function format_timestamp 

Source
pub fn format_timestamp(epoch: u64) -> Result<String, String>
Expand description

Formats the epoch timestamp as a UTC timestamp like "20201-05-04T13:02:59Z".

ยงErrors

Returns an error when epoch is out of range.