nautilus_core::python::datetime

Function py_nanos_to_millis

Source
pub const fn py_nanos_to_millis(nanos: u64) -> u64
Expand description

Return round milliseconds (ms) converted from the given nanoseconds (ns).

§Parameters

nanos : int The nanoseconds to convert.

§Returns

int