seconds

Function seconds 

Source
pub fn seconds() -> i64
Expand description

Returns the current time in seconds since the Unix epoch

This function is now a wrapper around TimestampUtils for consistency. Consider using TimestampUtils::ms_to_seconds(TimestampUtils::now_ms()) for new code.

ยงExample

use ccxt_core::time::seconds;

let now = seconds();
assert!(now > 0);