nanos_to_secs_i64

Function nanos_to_secs_i64 

Source
pub fn nanos_to_secs_i64(nanos: UnixNanos) -> i64
Expand description

Converts UnixNanos to seconds as i64 using integer division.

Uses pure integer arithmetic to avoid floating-point precision loss that can occur when converting large nanosecond timestamps (e.g., order expiry times).