Skip to main content

parse_protocol_time_ns

Function parse_protocol_time_ns 

Source
pub fn parse_protocol_time_ns(s: &str) -> Result<i128>
Expand description

Parse a protocol time into exact nanoseconds since 1970-01-01T00:00:00Z (negative before 1970). Works on bytes and checks every position, so malformed or non-ASCII input returns an error and never panics.