pub fn py_secs_to_millis(secs: f64) -> PyResult<u64>
Converts seconds to milliseconds (ms).
Returns an error if secs is non-finite or exceeds MAX_SECS_FOR_MILLIS.
secs
MAX_SECS_FOR_MILLIS