Skip to main content

current_timestamp

Function current_timestamp 

Source
pub fn current_timestamp() -> u64
Expand description

Get current Unix timestamp in seconds

Uses unwrap_or_default() to safely handle potential system time errors by falling back to epoch (0) rather than panicking.