def is_iso8601(dt_str):
    'Returns True if dt_str conforms to ISO 8601\n    Arguments:\n        - dt_str: the String to check\n    Returns:\n        True if dt_str conforms to dt_str and False otherwise\n    '
    try:
        if (iso8601_regex.match(dt_str) is not None):
            return True
    except:
        pass
    return False
Returns True if dt_str conforms to ISO 8601
Arguments:
    - dt_str: the String to check
Returns:
    True if dt_str conforms to dt_str and False otherwise
def is_iso8601(dt_str):
    'Returns True if dt_str conforms to ISO 8601\n    Arguments:\n        - dt_str: the String to check\n    Returns:\n        True if dt_str conforms to dt_str and False otherwise\n    '
    try:
        if (iso8601_regex.match(dt_str) is not None):
            return True
    except:
        pass
    return False