Skip to main content

parse_period

Function parse_period 

Source
pub fn parse_period(period: &str) -> Result<(String, String), YukiError>
Expand description

Parse a period string into (start_date, end_date) as “YYYY-MM-DD” strings.

Supported formats:

  • "YYYY" — full calendar year
  • "YYYY-QN" — calendar quarter (Q1–Q4)
  • "YYYY-MM" — calendar month