Convert a UNIX timestamp to Rust

The general strategy is to convert the integer to a type that’s unaware of time zones, such as chrono::NaiveDateTime, then convert that time to one that’s timezone-aware, such as chrono::Utc.
The general strategy is to convert the integer to a type that’s unaware of time zones, such as chrono::NaiveDateTime, then convert that time to one that’s timezone-aware, such as chrono::Utc.