Skip to main content

now_epoch_secs_for_warn

Function now_epoch_secs_for_warn 

Source
fn now_epoch_secs_for_warn() -> i64
Expand description

Convert SystemTime::now() to seconds since the Unix epoch. Returns 0 if the system clock is somehow before 1970 — same fallback as the “never warned” sentinel, which simply means the next warn fires.