Module time::sys::local_offset_at::imp
source · Available on crate feature
local-offset
only.Expand description
Get the system’s UTC offset on Unix.
Constants§
- Whether the operating system has a thread-safe environment. This allows bypassing the check for if the process is multi-threaded.
Functions§
- Obtain the system’s UTC offset.
- timestamp_to_tm 🔒 ⚠Convert the given Unix timestamp to a
libc::tm
. ReturnsNone
on any error. - tm_to_offset 🔒 Redox or Linux or L4Re or Android or Emscripten or macOS or iOS or watchOS or FreeBSD or DragonFly BSD or OpenBSD or NetBSD or HaikuConvert a
libc::tm
to aUtcOffset
. ReturnsNone
on any error.