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 Android or DragonFly BSD or Emscripten or FreeBSD or Haiku or iOS or L4Re or Linux or macOS or NetBSD or OpenBSD or Redox OS or watchOS - Convert a
libc::tmto aUtcOffset. ReturnsNoneon any error.