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

Function format_timestamp_ms

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

Format an event timestamp, including legacy seconds, to RFC-3339.

(epoch_ms: i64)

Source from the content-addressed store, hash-verified

1090
1091/// Format an event timestamp, including legacy seconds, to RFC-3339.
1092fn format_timestamp_ms(epoch_ms: i64) -> String {
1093 crate::types::timestamp::epoch_datetime(epoch_ms)
1094 .map(|dt| dt.to_rfc3339())
1095 .unwrap_or_else(|| format!("{}", epoch_ms))
1096}
1097
1098mod bindings;
1099mod capability;

Callers 1

Calls 1

epoch_datetimeFunction · 0.85

Tested by

no test coverage detected