MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / expiry

Function expiry

atomic-cli/src/commands/sandbox.rs:332–337  ·  view source on GitHub ↗
(stamp: Option<&prost_types::Timestamp>)

Source from the content-addressed store, hash-verified

330}
331
332fn expiry(stamp: Option<&prost_types::Timestamp>) -> String {
333 stamp
334 .and_then(|t| chrono::DateTime::from_timestamp(t.seconds, 0))
335 .map(|t| t.to_rfc3339())
336 .unwrap_or_else(|| "-".to_string())
337}
338
339/// Grant a remote sandbox one view, and print its pointer.
340#[derive(Parser, Debug)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected