Skip to main content

parse_datetime_ns

Function parse_datetime_ns 

Source
pub fn parse_datetime_ns(s: &str) -> Result<u64, FilterError>
Expand description

Parse an RFC 3339 datetime string or a millisecond-epoch integer to nanoseconds since the Unix epoch.

ยงErrors

Returns FilterError::InvalidDateTime if the string is neither a valid RFC 3339 string nor a decimal integer.