host_tz_offset

Function host_tz_offset 

Source
fn host_tz_offset() -> Result<i16>
Expand description

This host’s current UTC offset, in minutes east.

Read through the C library rather than a date crate: localtime_r resolves TZ, the zone database, and today’s daylight-saving state the same way every other program on the machine does, which is what “the system time zone” means to the person typing this.