Function align_ts

Source
fn align_ts(ts: i64, interval: Duration) -> i64
Expand description

Align the timestamp to the nearest interval.

ยงPanics

Panics if interval as milliseconds is zero.