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

Method timestamp

atomic-core/src/change/provenance_graph/builder.rs:164–167  ·  view source on GitHub ↗

Set a raw epoch timestamp, preserved verbatim for historical imports. New writers should use [`Self::timestamp_millis`]; legacy seconds remain readable without rewriting their payloads.

(mut self, ts: i64)

Source from the content-addressed store, hash-verified

162 /// New writers should use [`Self::timestamp_millis`]; legacy seconds remain
163 /// readable without rewriting their payloads.
164 pub fn timestamp(mut self, ts: i64) -> Self {
165 self.timestamp = Some(ts);
166 self
167 }
168
169 /// Set the timestamp in Unix epoch milliseconds. Defaults to now.
170 pub fn timestamp_millis(self, ts: i64) -> Self {

Calls

no outgoing calls