parse_time_string

Function parse_time_string 

Source
pub fn parse_time_string(time_str: &str) -> Result<DateTime<Utc>, String>
Expand description

Parses a user-provided time string into a DateTime object. Handles both relative times (“1h ago”) and absolute timestamps.