pub(crate) fn now_epoch_secs() -> Option<u64> {
#[cfg(feature = "wasm_js")]
{
Some((js_sys::Date::now() / 1000.0) as u64)
}
#[cfg(not(feature = "wasm_js"))]
{
std::time::SystemTime::now()
.duration_since(std::time::SystemTime::UNIX_EPOCH)
.ok()
.map(|d| d.as_secs())
}
}