Skip to main content

parse_range

Function parse_range 

Source
pub fn parse_range(input: &str, now_ms: i64) -> Result<TimeRange, RangeError>
Expand description

Read START..END, the form a backfill is asked for.

An empty end means now, so -7d.. is the last week. Both sides accept an absolute YYYY-MM-DD or RFC 3339 instant, a negative offset like -7d, or now.