Skip to main content

date_bucket

Function date_bucket 

Source
pub fn date_bucket(text: &str, bucket: DateBucket) -> Option<String>
Expand description

A date’s bucket key: day 2026-10-05, week 2026-W41 (ISO), month 2026-10, quarter 2026-Q4, year 2026; None when the text holds no date that precise.