Skip to main content

parse_millis_to_nanos

Function parse_millis_to_nanos 

Source
pub fn parse_millis_to_nanos(millis: u64) -> Result<UnixNanos>
Expand description

Converts a Unix millisecond timestamp into [UnixNanos].

ยงErrors

Returns an error if millis * 1_000_000 would overflow u64. Realistic venue timestamps are nowhere near this bound; the check rejects malformed payloads instead of silently wrapping in release builds.