Skip to main content

unix_now_secs

Function unix_now_secs 

Source
pub fn unix_now_secs() -> u64
Expand description

Current Unix time in whole seconds.

Panics if the system clock reads before the Unix epoch. Callers use this for expiry classification; a silent fallback to 0 would classify every expired instrument as live and reopen trading on it, so a crash is the correct failure mode.