Skip to main content

current_unix_secs

Function current_unix_secs 

Source
pub fn current_unix_secs() -> u64
Expand description

Returns the current Unix time in seconds, falling back to 0 on error.

Provided as a free function so callers that already have a timestamp do not need to touch the system clock.