MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / now_epoch_secs

Function now_epoch_secs

nodedb/src/control/server/sync/security.rs:277–282  ·  view source on GitHub ↗

Current epoch seconds.

()

Source from the content-addressed store, hash-verified

275
276/// Current epoch seconds.
277fn now_epoch_secs() -> u64 {
278 SystemTime::now()
279 .duration_since(UNIX_EPOCH)
280 .unwrap_or_default()
281 .as_secs()
282}
283
284#[cfg(test)]
285mod tests {

Callers 2

validate_upgrade_tokenFunction · 0.70

Calls 2

nowFunction · 0.85
duration_sinceMethod · 0.80

Tested by

no test coverage detected