def validate_time(name, input_value):
    changed = False
    sequence = True
    if (not isinstance(input_value, SEQUENCE_TYPES)):
        sequence = False
        input_value = [input_value]
    valid_values = []
    for element in input_value:
        if isinstance(element, STRING_TYPES):
            if isinstance(format_time(element), datetime):
                valid_values.append(element)
            else:
                return False
        elif isinstance(element, datetime):
            changed = True
            if element.tzinfo:
                valid_values.append(element.strftime('%Y%m%d%H%M%SZ%z'))
            else:
                offset = (datetime.now() - datetime.utcnow())
                valid_values.append((element - offset).strftime('%Y%m%d%H%M%SZ'))
        else:
            return False
    if changed:
        if sequence:
            return valid_values
        else:
            return valid_values[0]
    else:
        return True
def validate_time(name, input_value):
    changed = False
    sequence = True
    if (not isinstance(input_value, SEQUENCE_TYPES)):
        sequence = False
        input_value = [input_value]
    valid_values = []
    for element in input_value:
        if isinstance(element, STRING_TYPES):
            if isinstance(format_time(element), datetime):
                valid_values.append(element)
            else:
                return False
        elif isinstance(element, datetime):
            changed = True
            if element.tzinfo:
                valid_values.append(element.strftime('%Y%m%d%H%M%SZ%z'))
            else:
                offset = (datetime.now() - datetime.utcnow())
                valid_values.append((element - offset).strftime('%Y%m%d%H%M%SZ'))
        else:
            return False
    if changed:
        if sequence:
            return valid_values
        else:
            return valid_values[0]
    else:
        return True