Available on crate feature
local-offset only.Expand description
Get the system’s UTC offset on Unix.
Functions§
- local_
offset_ 🔒at - Obtain the system’s UTC offset.
- timestamp_
to_ 🔒tm - Convert the given Unix timestamp to a
libc::tm. ReturnsNoneon 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 Haiku - Convert a
libc::tmto aUtcOffset. ReturnsNoneon any error.