Skip to main content

now_seconds

Function now_seconds 

Source
pub fn now_seconds() -> i64
Expand description

The current time, seconds since the epoch: the clock availability measures cooldowns against. Zero on a clock set before the epoch rather than a panic.

use majordomus_cli::reasoning::{epoch_seconds, now_seconds};

assert!(now_seconds() > epoch_seconds("2026-01-01T00:00:00Z").unwrap());