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

Function timestamp_proto

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

Source from the content-addressed store, hash-verified

7843}
7844
7845fn timestamp_proto(time: chrono::DateTime<chrono::Utc>) -> prost_types::Timestamp {
7846 prost_types::Timestamp {
7847 seconds: time.timestamp(),
7848 nanos: time.timestamp_subsec_nanos() as i32,
7849 }
7850}
7851
7852/// Resolve the repository root from an explicit path argument (the Reactor
7853/// always passes the canonical root).

Callers 1

turn_event_bodyFunction · 0.70

Calls 1

timestampMethod · 0.45

Tested by

no test coverage detected