parse_from_hmstr

Function parse_from_hmstr 

Source
pub fn parse_from_hmstr(time_str: &Option<String>) -> Option<DateTime<Local>>
Expand description

Parse a string with the expected format “hh:mm” and return a DateTime<Local> for the current day at time “hh:mm”

If mm is not parsable we return a datetime set at hh:00.