'Returns true if the first row in the result has a Date, Datetime, Long Int.'

def needs_formatting(self, result, formatted):

    if (result and result[0]):
        for v in result[0]:
            if isinstance(v, (datetime.date, datetime.timedelta, datetime.datetime, long)):
                return True
            if (formatted and isinstance(v, (int, float))):
                return True
    return False
