Skip to main content

parse_older_than_cutoff

Function parse_older_than_cutoff 

Source
pub fn parse_older_than_cutoff(now_rfc3339: &str, spec: &str) -> Result<String>
Expand description

Parse an “older than” specification into an RFC3339 cutoff.

Supports:

  • Duration expressions: “7d”, “1w” (weeks), “30d” (days)
  • Date: “2026-01-01”
  • RFC3339: “2026-01-01T00:00:00Z”