vdb/lib/__init__.py
def convert_time(time_str):
    """Convert iso string to date time object

    :param time_str: String time to convert
    """
    try:
        dt = datetime.strptime(time_str, "%Y-%m-%dT%H:%Mz")
        return dt
    except Exception:
        return time_str
Convert iso string to date time object

    :param time_str: String time to convert
    
Convert iso string to date time object
Convert iso string to date time object
def convert_time(time_str):
    try:
        dt = datetime.strptime(time_str, "%Y-%m-%dT%H:%Mz")
        return dt
    except Exception:
        return time_str
def convert_time ( time_str ) : try : dt = datetime . strptime ( time_str , "%Y-%m-%dT%H:%Mz" ) return dt except Exception : return time_str
Convert iso string to date time object
Convert iso string to date time object
"""Convert iso string to date time object

    :param time_str: String time to convert
    """
time_str
String time to convert
String time to convert