Skip to main content

current_time

Function current_time 

Source
pub fn current_time() -> Result<u64>
Expand description

Returns the current Unix timestamp in seconds.

ยงReturns

Returns the number of seconds since the Unix epoch (January 1, 1970 UTC).