Sometimes, you want to add checks to ensure that your constants are protected from typos or other logic errors. Here is how to implement compile-time assertions in 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.