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

Method timestamp

atomic-repository/src/history/types.rs:178–180  ·  view source on GitHub ↗

Get the timestamp if a header is loaded.

(&self)

Source from the content-addressed store, hash-verified

176
177 /// Get the timestamp if a header is loaded.
178 pub fn timestamp(&self) -> Option<chrono::DateTime<chrono::Utc>> {
179 self.header.as_ref().map(|h| h.timestamp)
180 }
181
182 /// Get the authors if a header is loaded.
183 pub fn authors(&self) -> Option<&[atomic_core::change::Author]> {

Calls 1

as_refMethod · 0.80