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

Function timestamp_proto

atomic-cli/src/commands/rpc.rs:7757–7762  ·  view source on GitHub ↗
(time: chrono::DateTime<chrono::Utc>)

Source from the content-addressed store, hash-verified

7755}
7756
7757fn timestamp_proto(time: chrono::DateTime<chrono::Utc>) -> prost_types::Timestamp {
7758 prost_types::Timestamp {
7759 seconds: time.timestamp(),
7760 nanos: time.timestamp_subsec_nanos() as i32,
7761 }
7762}
7763
7764/// Resolve the repository root from an explicit path argument (the Reactor
7765/// always passes the canonical root).

Callers 1

turn_event_bodyFunction · 0.70

Calls 1

timestampMethod · 0.45

Tested by

no test coverage detected