Skip to main content

parse_timestamp_to_precision_units

Function parse_timestamp_to_precision_units 

Source
fn parse_timestamp_to_precision_units(
    timestamp_str: &str,
    precision: i32,
    literal_kind: &'static str,
    span: Span<'_>,
) -> Result<i64, MessageParseError>
Expand description

Parse a timestamp string using chrono to a value in the given precision’s units since the Unix epoch.