Skip to main content

parse_date_time

Function parse_date_time 

Source
pub fn parse_date_time(text: &str) -> Result<(Date, Option<Time>), String>
Expand description

A date and maybe a time after it, as the formatter writes them: 2026-10-19, 2026-10-19 Mon 07:00, any date 07:00, or unspecified for neither. The time is None when none was typed.