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

Function timestamp_domain

libatomic/src/daemon/convert.rs:28–31  ·  view source on GitHub ↗
(stamp: &prost_types::Timestamp)

Source from the content-addressed store, hash-verified

26}
27
28pub fn timestamp_domain(stamp: &prost_types::Timestamp) -> chrono::DateTime<chrono::Utc> {
29 chrono::DateTime::from_timestamp(stamp.seconds, stamp.nanos.max(0) as u32)
30 .unwrap_or_else(chrono::Utc::now)
31}
32
33/// Native attribute-only changes remain MODIFIED for existing wire clients;
34/// the optional diagnostic preserves the subtype for native CLI rendering.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected