Skip to main content

parse_temporal_query

Function parse_temporal_query 

Source
pub fn parse_temporal_query(query: &str, now_ms: i64) -> Option<TemporalRewrite>
Expand description

Extract one temporal phrase from query, resolved against now_ms (unix ms, UTC). None means the caller searches its original query unmodified — see the module docs for the grammar and boundary rules. Pure and deterministic: same (query, now_ms) → same result; no I/O, no clock reads.