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

Method timestamp_datetime

atomic-core/src/change/session.rs:693–695  ·  view source on GitHub ↗

Decode current milliseconds and historical seconds without changing the serialized turn or the content-addressed manifest that contains it.

(&self)

Source from the content-addressed store, hash-verified

691 /// Decode current milliseconds and historical seconds without changing the
692 /// serialized turn or the content-addressed manifest that contains it.
693 pub fn timestamp_datetime(&self) -> Option<chrono::DateTime<chrono::Utc>> {
694 crate::types::timestamp::epoch_datetime(self.timestamp)
695 }
696
697 pub fn to_bytes(&self) -> Vec<u8> {
698 postcard::to_allocvec(self).expect("SessionTurn serialization")

Callers 4

to_agent_trace_recordFunction · 0.45
emit_turn_kgMethod · 0.45
stored_turn_protoFunction · 0.45
publication_protoFunction · 0.45

Calls 1

epoch_datetimeFunction · 0.85

Tested by

no test coverage detected