MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / now_secs

Function now_secs

crates/openshell-server/src/auth/sandbox_jwt.rs:236–243  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

234}
235
236fn now_secs() -> i64 {
237 i64::try_from(
238 SystemTime::now()
239 .duration_since(UNIX_EPOCH)
240 .map_or(0, |d| d.as_secs()),
241 )
242 .unwrap_or(i64::MAX)
243}
244
245#[cfg(test)]
246mod tests {

Callers 3

mintMethod · 0.85
validate_expFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected