Datetime utils
- utils.datetime_utils.parse_date(str_date: str)
Function to parse a date or datetime string to a datetime object. Tries many different formats to see if it can make sense out of the string. Both dates and times seperated by a ‘T’ and a space are supported. Both datetimes with and without timezone specification are supported
- Parameters:
str_date – input string representing a date or a datetime
- Returns:
datetime object based on the information in the input string