MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / now_secs

Function now_secs

gateway/src/distributed_certbot.rs:484–489  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

482}
483
484fn now_secs() -> u64 {
485 SystemTime::now()
486 .duration_since(UNIX_EPOCH)
487 .unwrap_or_default()
488 .as_secs()
489}
490
491fn get_cert_expiry(cert_pem: &str) -> Option<u64> {
492 use x509_parser::prelude::*;

Callers 7

init_domainMethod · 0.70
try_renewMethod · 0.70
do_request_newMethod · 0.70
do_renewMethod · 0.70
save_cert_to_kvstoreMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected