Skip to main content

local_offset_seconds

Function local_offset_seconds 

Source
pub fn local_offset_seconds(epoch_ms: i64) -> i32
Expand description

The machine-local UTC offset (seconds) at the instant epoch_ms. Honours the TZ env var on Unix, so it matches the Node hook process’s toLocaleString() zone. DST-correct because the offset is resolved at that instant, not “now”.