Skip to main content

current_unix_secs

Function current_unix_secs 

Source
pub fn current_unix_secs() -> i64
Expand description

Return current Unix timestamp in seconds.

Separated into a function so tests can substitute a mock clock by calling registry methods directly with a controlled now value.