MCPcopy Create free account
hub / github.com/elastic/devfiler / ts2chrono

Function ts2chrono

src/ui/timeaxis.rs:86–88  ·  view source on GitHub ↗
(ts: i64)

Source from the content-addressed store, hash-verified

84}
85
86pub fn ts2chrono(ts: i64) -> chrono::DateTime<chrono::Utc> {
87 chrono::DateTime::from_timestamp(ts.max(0), 0).unwrap()
88}

Callers 1

mk_time_axisFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected