Skip to main content

Module date_range_parser

Module date_range_parser 

Source
Expand description

Date range string parser

Parses various date range formats into timestamp pairs:

  • Absolute: “2024-01-01 to 2024-12-31” (both dates included)
  • Relative: “last 30 days”, “last 6 months”
  • Presets: “YTD”, “MTD”, “1M”, “3M”, “6M”, “1Y”, “5Y”, “MAX”

Enums§

DateRangeParseError
Date range parsing errors

Functions§

parse_date_range
Parse a date range string into start/end timestamps