pub fn parse_date_expr(input: &str) -> Result<DateExpr, DateMathError>Expand description
Parse a date math expression.
Examples:
today-> DateExpr { base: Today, offset: None, format: None }today + 1d-> DateExpr { base: Today, offset: Duration { amount: 1, unit: Days }, format: None }now | %H:%M-> DateExpr { base: Now, offset: None, format: Some(“%H:%M”) }today - monday-> DateExpr { base: Today, offset: Weekday { weekday: Monday, direction: Previous }, format: None }