Function time::sys::local_offset_at::imp::timestamp_to_tm
source · unsafe fn timestamp_to_tm(timestamp: i64) -> Option<tm>
Expand description
Convert the given Unix timestamp to a libc::tm
. Returns None
on any error.
§Safety
This method must only be called when the process is single-threaded.
This method will remain unsafe
until std::env::set_var
is deprecated or has its behavior
altered. This method is, on its own, safe. It is the presence of a safe, unsound way to set
environment variables that makes it unsafe.