validate_date_range

Function validate_date_range 

Source
pub fn validate_date_range(
    since: Option<NaiveDateTime>,
    until: Option<NaiveDateTime>,
) -> Result<(), Error>
Expand description

Validate that a (since, until) date range is well-ordered.

Extracted so the HTTP handler and CLI can share the check without constructing a full backend context.