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

Function format_timestamp_ms

atomic-core/src/pristine/txn/write/mod.rs:285–289  ·  view source on GitHub ↗

Format a Unix epoch milliseconds timestamp to RFC-3339 string.

(epoch_ms: i64)

Source from the content-addressed store, hash-verified

283
284/// Format a Unix epoch milliseconds timestamp to RFC-3339 string.
285fn format_timestamp_ms(epoch_ms: i64) -> String {
286 chrono::DateTime::from_timestamp_millis(epoch_ms)
287 .map(|dt| dt.to_rfc3339())
288 .unwrap_or_else(|| format!("{}", epoch_ms))
289}
290
291mod embeddings;
292mod graph;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected