Skip to main content

duration_to_ts

Function duration_to_ts 

Source
fn duration_to_ts(duration: Duration) -> Timestamp
Expand description

A millisecond Duration as a Timestamp, saturating at Timestamp::MAX on overflow rather than panicking the controller on a bad input.