Function time::sys::local_offset_at::imp::tm_to_offset

source ·
fn tm_to_offset(_unix_timestamp: i64, tm: tm) -> Option<UtcOffset>
Available on crate feature local-offset and (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) only.
Expand description

Convert a libc::tm to a UtcOffset. Returns None on any error.